### Question:
DumpDeletedJudgmentController extends ControllersEntityExceptionHandler { @RequestMapping(value = "") @RestrictParamsNames @ResponseBody public ResponseEntity<Object> showDeletedJudgments(@RequestHeader(value = "Accept", required = false) String acceptHeader, HttpServletRequest request) throws WrongRequestParameterException { checkRequestMethod(request, HttpMethod.GET); checkAcceptHeader(acceptHeader, MediaType.APPLICATION_JSON); List<Long> deletedJudgmentIds = deletedJudgmentRepository.findAllJudgmentIds(); DumpDeletedJudgmentsView representation = representationBuilder.build(deletedJudgmentIds, linkTo(DumpDeletedJudgmentController.class).toUriComponentsBuilder()); HttpHeaders httpHeaders = new HttpHeaders(); return new ResponseEntity<>(representation, httpHeaders, HttpStatus.OK); }  @RequestMapping(value = "") @RestrictParamsNames @ResponseBody ResponseEntity<Object> showDeletedJudgments(@RequestHeader(value = "Accept", required = false) String acceptHeader, HttpServletRequest request); @Autowired void setRepresentationBuilder(DumpDeletedJudgmentsSuccessRepresentationBuilder representationBuilder); @Autowired void setDeletedJudgmentRepository(DeletedJudgmentRepository deletedJudgmentRepository);  }### Answer:
@Test public void showDeletedJudgments() throws Exception { testPersistenceObjectFactory.createDeletedJudgments(123L, 124L, 1240L); ResultActions result = mockMvc.perform(get(DUMP_PATH).accept(MediaType.APPLICATION_JSON)); assertOk(result); result .andExpect(jsonPath("$.links", hasSize(1))) .andExpect(jsonPath("$.links.[0].rel").value("self")) .andExpect(jsonPath("$.links.[0].href").value(Matchers.endsWith(DUMP_PATH))) .andExpect(jsonPath("$.items", hasSize(3))) .andExpect(jsonPath("$.items.[0]").value(equalsLong(123L))) .andExpect(jsonPath("$.items.[1]").value(equalsLong(124L))) .andExpect(jsonPath("$.items.[2]").value(equalsLong(1240L))) .andExpect(jsonPath("$.queryTemplate").value(Matchers.nullValue())) .andExpect(jsonPath("$.info").value(Matchers.nullValue())); }