### Question:
APIServiceStatusService { public ResponseEntity<String> getServiceCachedApiDocInfo(@NonNull String serviceId, String apiVersion) { return new ResponseEntity<>(cachedApiDocService.getApiDocForService(serviceId, apiVersion), createHeaders(), HttpStatus.OK); } @Autowired  APIServiceStatusService(CachedProductFamilyService cachedProductFamilyService,
                                   CachedServicesService cachedServicesService,
                                   CachedApiDocService cachedApiDocService); ResponseEntity<Applications> getCachedApplicationStateResponse(); Applications getCachedApplicationState(); List<ContainerStatusChangeEvent> getContainersStateAsEvents(); ResponseEntity<String> getServiceCachedApiDocInfo(@NonNull String serviceId, String apiVersion); List<ContainerStatusChangeEvent> getRecentlyUpdatedContainersAsEvents();  }### Answer:
@Test public void getCachedApiDocInfoForService() { String apiDoc = "this is the api doc"; when(cachedApiDocService.getApiDocForService(anyString(), anyString())).thenReturn(apiDoc); ResponseEntity<String> expectedResponse = new ResponseEntity<>(apiDoc, HttpStatus.OK); ResponseEntity<String> actualResponse = apiServiceStatusService.getServiceCachedApiDocInfo("aaa", "v1"); assertEquals(expectedResponse.getStatusCode(), actualResponse.getStatusCode()); assertEquals(HttpStatus.OK, actualResponse.getStatusCode()); }