### Question:
SupportedVersionService { public SupportedVersions collectSupportedVersions() { SupportedVersions supportedVersions = new SupportedVersions(); Set<SupportedVersion> supportedVersionsSet = new HashSet<>(); resolver.cdhConfigurations().forEach((key, value) -> { SupportedVersion supportedVersion = new SupportedVersion(); supportedVersion.setType(key.getStackType()); supportedVersion.setVersion(key.getVersion()); SupportedServices supportedServices = new SupportedServices(); for (CdhService serviceName : value) { for (ServiceConfig serviceInformation : resolver.serviceConfigs()) { if (serviceInformation.getName().equals(serviceName.getName())) { SupportedService supportedService = new SupportedService(); supportedService.setName(serviceInformation.getName()); supportedService.setDisplayName(serviceInformation.getDisplayName()); supportedService.setVersion(serviceName.getVersion()); supportedServices.getServices().add(supportedService); break; } } } supportedVersion.setSupportedServices(supportedServices); supportedVersionsSet.add(supportedVersion); }); supportedVersions.setSupportedVersions(supportedVersionsSet); return supportedVersions; }  SupportedVersions collectSupportedVersions();  }### Answer:
@Test public void testServicesAndDependencies() { SupportedVersions supportedVersions = supportedVersionService().collectSupportedVersions(); Assert.assertTrue(!supportedVersions.getSupportedVersions().isEmpty()); }