### Question:
BambooMock { @RequestMapping(value = "result/{buildKey}.json", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) @ResponseStatus(HttpStatus.OK) @ResponseBody public BambooResultResponse getBambooBuildResponse(@PathVariable("buildKey") String buildKey, @RequestParam(value = "os_authType", required = false) String authType, @RequestParam(value = "os_username", required = false) String username, @RequestParam(value = "os_password", required = false) String password) { return simulator.getBuildResponse(); } @Autowired  BambooMock(BambooSimulator simulator); @RequestMapping(value = "result/{buildKey}.json", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) @ResponseStatus(HttpStatus.OK) @ResponseBody BambooResultResponse getBambooBuildResponse(@PathVariable("buildKey") String buildKey,
                                                       @RequestParam(value = "os_authType", required = false) String authType,
                                                       @RequestParam(value = "os_username", required = false) String username,
                                                       @RequestParam(value = "os_password", required = false) String password);  }### Answer:
@Test public void testGetBambooBuildResponse() throws Exception { this.mockMvc.perform(get("/api/latest/result/test.json").accept(MediaType.APPLICATION_JSON)) .andExpect(status().isOk()) .andExpect(content().contentType(MediaType.APPLICATION_JSON)) .andExpect(jsonPath("$.results.expand").value("result")); }