### Question:
CatalogApiDocController { @GetMapping(value = "/{serviceId}/{apiVersion}", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) @ApiOperation(value = "Retrieves the API documentation for a specific service version", notes = "Returns the API documentation for a specific service {serviceId} and version {apiVersion}. When " + " the API documentation for the specified version is not found, the first discovered version will be used.", authorizations = { @Authorization("LoginBasicAuth"), @Authorization("CookieAuth") }, response = String.class) @ApiResponses(value = { @ApiResponse(code = 200, message = "OK"), @ApiResponse(code = 401, message = "Unauthorized"), @ApiResponse(code = 403, message = "Forbidden"), @ApiResponse(code = 404, message = "URI not found"), @ApiResponse(code = 500, message = "An unexpected condition occurred"), }) public ResponseEntity<String> getApiDocInfo( @ApiParam(name = "serviceId", value = "The unique identifier of the registered service", required = true, example = "apicatalog") @PathVariable(value = "serviceId") String serviceId, @ApiParam(name = "apiVersion", value = "The major version of the API documentation (v1, v2, etc.)", required = true, example = "v1") @PathVariable(value = "apiVersion") String apiVersion) { return this.apiServiceStatusService.getServiceCachedApiDocInfo(serviceId, apiVersion); } @Autowired  CatalogApiDocController(APIServiceStatusService apiServiceStatusService); @GetMapping(value = "/{serviceId}/{apiVersion}", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) @ApiOperation(value = "Retrieves the API documentation for a specific service version", notes = "Returns the API documentation for a specific service {serviceId} and version {apiVersion}. When " + " the API documentation for the specified version is not found, the first discovered version will be used.", authorizations = { @Authorization("LoginBasicAuth"), @Authorization("CookieAuth") }, response = String.class) @ApiResponses(value = { @ApiResponse(code = 200, message = "OK"), @ApiResponse(code = 401, message = "Unauthorized"), @ApiResponse(code = 403, message = "Forbidden"), @ApiResponse(code = 404, message = "URI not found"), @ApiResponse(code = 500, message = "An unexpected condition occurred"), }) ResponseEntity<String> getApiDocInfo(
        @ApiParam(name = "serviceId", value = "The unique identifier of the registered service", required = true, example = "apicatalog")
        @PathVariable(value = "serviceId") String serviceId,
        @ApiParam(name = "apiVersion", value = "The major version of the API documentation (v1, v2, etc.)", required = true, example = "v1")
        @PathVariable(value = "apiVersion") String apiVersion);  }### Answer:
@Test public void testGetApiDocInfo() { APIServiceStatusService apiServiceStatusService = Mockito.mock(APIServiceStatusService.class); CatalogApiDocController catalogApiDocController = new CatalogApiDocController(apiServiceStatusService); ResponseEntity<String> response = new ResponseEntity<>("Some API Doc", HttpStatus.OK); when(apiServiceStatusService.getServiceCachedApiDocInfo("service", "1.0.0")).thenReturn(response); ResponseEntity<String> res = catalogApiDocController.getApiDocInfo("service", "1.0.0"); Assert.assertNotNull(res); Assert.assertEquals("Some API Doc", res.getBody()); }