ConfigServiceLocator { public List<ServiceDTO> getConfigServices() { if (m_configServices.get().isEmpty()) { updateConfigServices(); } return m_configServices.get(); } ConfigServiceLocator(); List<ServiceDTO> getConfigServices();  }
@Test public void testGetConfigServicesWithSystemProperty() throws Exception { String someConfigServiceUrl = " someConfigServiceUrl "; String anotherConfigServiceUrl = " anotherConfigServiceUrl "; System.setProperty("apollo.configService", someConfigServiceUrl + "," + anotherConfigServiceUrl); ConfigServiceLocator configServiceLocator = new ConfigServiceLocator(); List<ServiceDTO> result = configServiceLocator.getConfigServices(); assertEquals(2, result.size()); assertEquals(someConfigServiceUrl.trim(), result.get(0).getHomepageUrl()); assertEquals(anotherConfigServiceUrl.trim(), result.get(1).getHomepageUrl()); }