### Question:
VersionController { @GetMapping(value = "/version", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) public ResponseEntity<VersionInfo> getVersion() { return new ResponseEntity<>(versionService.getVersion(), HttpStatus.OK); }  @GetMapping(value = "/version", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) ResponseEntity<VersionInfo> getVersion();  }### Answer:
@Test public void givenSpecificVersions_whenVersionEndpointCalled_thenVersionInfoShouldBeGivenInSuccessfulResponse() throws Exception { Mockito.when(versionService.getVersion()).thenReturn(getDummyVersionInfo()); this.mockMvc.perform(get("/gateway/version")) .andExpect(status().isOk()) .andExpect(jsonPath("$.zowe.version", is("0.0.0"))) .andExpect(jsonPath("$.zowe.buildNumber", is("000"))) .andExpect(jsonPath("$.zowe.commitHash", is("1a3b5c7"))) .andExpect(jsonPath("$.apiml.version", is("0.0.0"))) .andExpect(jsonPath("$.apiml.buildNumber", is("000"))) .andExpect(jsonPath("$.apiml.commitHash", is("1a3b5c7"))); }