### Question:
PageApi extends AbstractRestApi { @RequestMapping(value = "{pageId}", method = RequestMethod.DELETE) public void deletePage(@PathVariable String pageId, HttpServletResponse response) { logger.debug("DELETE received for /api/rest/page/" + pageId); pageService.deletePage(pageId); response.setStatus(HttpStatus.NO_CONTENT.value()); } @Autowired  PageApi(PageService pageService, OmdlService omdlService); @RequestMapping(value = "{pageId}", method = RequestMethod.DELETE) void deletePage(@PathVariable String pageId, HttpServletResponse response); @ResponseBody @RequestMapping(value = "{pageId}/omdl", method = RequestMethod.GET) OmdlOutputAdapter getOmdl(@PathVariable String pageId, HttpServletRequest request, HttpServletResponse response); @ResponseBody @RequestMapping(value = "{pageId}", method = RequestMethod.GET) Page getPage(@PathVariable String pageId, @RequestParam(required=false) boolean export);  }### Answer:
@Test public void testDeletePage() { pageService.deletePage(PAGE_ID); expectLastCall(); replay(pageService); pageApi.deletePage(PAGE_ID, response); assertThat(response.getStatus(), is(HttpStatus.NO_CONTENT.value())); verify(pageService); }