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