### Question:
PersonController { @RequestMapping(value = "/{id}", method = RequestMethod.GET) public Person getPerson(@PathVariable(value="id")String id){ Person person = this.personRepository.findOne(id); if(null == person){ throw new NotFoundException("Id not found"); } return person; }  @RequestMapping(method=RequestMethod.GET) Person findPerson(@RequestParam(value = "displayName")String displayName); @RequestMapping(method = RequestMethod.POST) Person addPerson(@RequestBody final Person model, HttpServletRequest request, HttpServletResponse response); @RequestMapping(value = "/{id}", method = RequestMethod.GET) Person getPerson(@PathVariable(value="id")String id); @RequestMapping(value="/{id}", method=RequestMethod.PUT) Person updatePerson(@PathVariable(value="id")String id, @RequestBody Person person); @RequestMapping(value="/{id}", method=RequestMethod.DELETE) void deletePerson(@PathVariable(value="id")String id);  }### Answer:
@Test public void testGetPerson() throws Exception { mockMvc.perform(get("/persons/" + personId).accept(MediaType.parseMediaType("application/json;charset=UTF-8"))) .andExpect(status().isOk()).andExpect(content().contentType(MediaType.parseMediaType("application/json;charset=UTF-8"))); }