BroadcastingController extends BaseController implements CrudController<BroadcastingMessageResource, BroadcastingMessageResource> { @Override @ResponseStatus(HttpStatus.NO_CONTENT) @RequestMapping(value = Request.ID, method = RequestMethod.DELETE) public MessageResource removeResource(@PathVariable("id") final Long id) { facade.removeResource(id); return new MessageResource(MessageType.INFO); }  @Override @ResponseStatus(HttpStatus.OK) @RequestMapping(method = RequestMethod.GET) PagedResultResource<BroadcastingMessageResource> getPagedResource(final PagedRequest<BroadcastingMessageResource> request); @Override @ResponseStatus(HttpStatus.OK) @RequestMapping(value = Request.ID, method = RequestMethod.GET) BroadcastingMessageResource getResource(@PathVariable("id") final Long id); @Override @ResponseStatus(HttpStatus.CREATED) @RequestMapping(method = RequestMethod.POST) BroadcastingMessageResource createResource(@Valid @RequestBody final BroadcastingMessageResource resource); @Override @ResponseStatus(HttpStatus.OK) @RequestMapping(value = Request.ID, method = RequestMethod.PUT) MessageResource updateResource(@PathVariable("id") final Long id, 
			@Valid @RequestBody final BroadcastingMessageResource resource); @Override @ResponseStatus(HttpStatus.NO_CONTENT) @RequestMapping(value = Request.ID, method = RequestMethod.DELETE) MessageResource removeResource(@PathVariable("id") final Long id);  }
@Test public void testDeleteBroadcastingMessage() throws Exception { Long id = 1L; mockMvc.perform(delete("/broadcastings/{id}", id)) .andExpect(status().is(204)); verify(facade).removeResource(id); }