### Question:
ScListController { @RequestMapping("/sc/judgmentForms/list") @ResponseBody public List<SimpleEntity> listScJudgmentForms() { return scListService.findScJudgmentForms(); }  @RequestMapping("sc/chambers/list") @ResponseBody List<SimpleEntity> listScChambers(); @RequestMapping("sc/chambers/{supremeChamberId}/chamberDivisions/list") @ResponseBody List<SimpleEntity> listScChamberDivisions(@PathVariable("supremeChamberId") long supremeChamberId); @RequestMapping("/sc/judgmentForms/list") @ResponseBody List<SimpleEntity> listScJudgmentForms();  }### Answer:
@Test public void listScJudgmentForms() throws Exception { ResultActions actions = mockMvc.perform(get("/sc/judgmentForms/list") .accept(MediaType.APPLICATION_JSON)); actions .andExpect(status().isOk()) .andExpect(jsonPath("$.[0].id").value(equalsLong(simpleEntities.get(0).getId()))) .andExpect(jsonPath("$.[0].name").value(simpleEntities.get(0).getName())) .andExpect(jsonPath("$.[1].id").value(equalsLong(simpleEntities.get(1).getId()))) .andExpect(jsonPath("$.[1].name").value(simpleEntities.get(1).getName())); verify(scListService, times(1)).findScJudgmentForms(); }