### Question:
CcListController { @RequestMapping("cc/courts/list") @ResponseBody public List<SimpleCommonCourt> listCcCourts() { return ccListService.findCommonCourts(); }  @RequestMapping("cc/courts/list") @ResponseBody List<SimpleCommonCourt> listCcCourts(); @RequestMapping("cc/courts/{commonCourtId}/courtDivisions/list") @ResponseBody List<SimpleEntity> listCcCourtDivisions(@PathVariable("commonCourtId") long commonCourtId);  }### Answer:
@Test public void listCcCourts() throws Exception { ResultActions actions = mockMvc.perform(get("/cc/courts/list") .accept(MediaType.APPLICATION_JSON)); actions .andExpect(status().isOk()) .andExpect(jsonPath("$.[0].id").value(equalsLong(simpleCcCourts.get(0).getId()))) .andExpect(jsonPath("$.[0].name").value(simpleCcCourts.get(0).getName())) .andExpect(jsonPath("$.[1].id").value(equalsLong(simpleCcCourts.get(1).getId()))) .andExpect(jsonPath("$.[1].name").value(simpleCcCourts.get(1).getName())); verify(ccListService, times(1)).findCommonCourts(); }