MarkScaleValueController extends BaseController implements CrudController<MarkScaleValueResource, MarkScaleValueResource> { @Override @ResponseStatus(HttpStatus.NO_CONTENT) @RequestMapping(value = "/{markScaleId}/values/{id}", method = RequestMethod.DELETE) @ApiOperation(value = "Delete MarkScale Value", position = 4) public MessageResource removeResource(@PathVariable("id") final Long id) { LOG.info("Removing markScale value with id: {}", id); facade.removeResource(id); return new MessageResource(MessageType.INFO, "MarkScale Value removed"); }  @Override @ResponseStatus(HttpStatus.CREATED) @RequestMapping(value = "/{markScaleId}/values", method = RequestMethod.POST) @ApiOperation(value = "Create MarkScale Value", position = 1) MarkScaleValueResource createResource(@Valid @RequestBody final MarkScaleValueResource resource); @Override @ResponseStatus(HttpStatus.OK) @RequestMapping(value = "/{markScaleId}/values/{id}", method = RequestMethod.PUT) @ApiOperation(value = "Update MarkScale Value", position = 2) MessageResource updateResource(@PathVariable("id") final Long id,
			@Valid @RequestBody final MarkScaleValueResource resource); @Override @ResponseStatus(HttpStatus.OK) @RequestMapping(value = "/{markScaleId}/values/{id}", method = RequestMethod.GET) @ApiOperation(value = "Get MarkScale Value by id", position = 3) MarkScaleValueResource getResource(@PathVariable("id") final Long id); @Override @ResponseStatus(HttpStatus.NO_CONTENT) @RequestMapping(value = "/{markScaleId}/values/{id}", method = RequestMethod.DELETE) @ApiOperation(value = "Delete MarkScale Value", position = 4) MessageResource removeResource(@PathVariable("id") final Long id); @Override @ResponseStatus(HttpStatus.OK) @RequestMapping(value = "/{markScaleId}/values", method = RequestMethod.GET) @ApiOperation(value = "Get MarkScales Values", position = 5) PagedResultResource<MarkScaleValueResource> getPagedResource(final PagedRequest<MarkScaleValueResource> request);  }
@Test public void testDeleteDepatmentValue() throws Exception { Long personId = 2L; Long contactId = 1L; mockMvc.perform(delete("/marks/scales/{markScaleId}/values/{contactId}", personId, contactId)) .andExpect(status().is(204)); verify(facade).removeResource(contactId); }