PublicActivityController extends BaseController implements CrudController<PublicActivityResource, PublicActivityResource> { @Override @ResponseStatus(HttpStatus.NO_CONTENT) @RequestMapping(value = Request.ID, method = RequestMethod.DELETE) public MessageResource removeResource(@PathVariable("id") final Long id) { LOG.info("Removing PublicActivity with id: {}", id); facade.removeResource(id); return new MessageResource(MessageType.INFO, "PublicActivity removed"); }  @Override @ResponseStatus(HttpStatus.CREATED) @RequestMapping(method = RequestMethod.POST) PublicActivityResource createResource(@Valid @RequestBody final PublicActivityResource personResource); @Override @ResponseStatus(HttpStatus.OK) @RequestMapping(value = Request.ID, method = RequestMethod.PUT) MessageResource updateResource(@PathVariable("id") final Long id,
			@Valid @RequestBody final PublicActivityResource personResource); @Override @ResponseStatus(HttpStatus.OK) @RequestMapping(value = Request.ID, method = RequestMethod.GET) PublicActivityResource getResource(@PathVariable("id") final Long id); @Override @ResponseStatus(HttpStatus.NO_CONTENT) @RequestMapping(value = Request.ID, method = RequestMethod.DELETE) MessageResource removeResource(@PathVariable("id") final Long id); @Override @ResponseStatus(HttpStatus.OK) @RequestMapping(method = RequestMethod.GET) PagedResultResource<PublicActivityResource> getPagedResource(final PagedRequest<PublicActivityResource> request); @Resource(name = "publicActivityFacade")
	private Facade<PublicActivityResource, PublicActivityResource, Long> facade; }
@Test public void testDeletePublicActivity() throws Exception { Long id = 1L; mockMvc.perform(delete("/publicactivities/{id}", id)) .andExpect(status().is(204)); verify(facade).removeResource(id); }