### Question:
APIServiceStatusService { public Applications getCachedApplicationState() { return cachedServicesService.getAllCachedServices(); } @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 getCachedApplicationState() { when(cachedServicesService.getAllCachedServices()).thenReturn(new Applications()); ResponseEntity<Applications> responseEntity = apiServiceStatusService.getCachedApplicationStateResponse(); assertEquals(HttpStatus.OK, responseEntity.getStatusCode()); }