CloudConfigurationProviderImpl implements CloudConfigurationProvider { public Collection<Cloud> getClouds() { return cloudsMap.values(); } @Autowired  CloudConfigurationProviderImpl(Config config); @PostConstruct void init(); Cloud getCloud(String cloudId); Collection<Cloud> getClouds();  }
@Test public void testGetClouds() throws Exception { List<Cloud> clouds = new ArrayList<>(cloudConfigurationProvider.getClouds()); assertThat(clouds, hasSize(1)); assertThat(clouds.get(0), equalTo(CLOUD)); }