### Question:
PropertyConfigurer implements BeanFactoryAware, BeanNameAware, BeanFactoryPostProcessor, Ordered, InitializingBean { @Override public void afterPropertiesSet() throws Exception { PropertyLoader pl = new PropertyLoader(defaultConfig, configOverride, LOG); propertyPlaceholderConfigurer.setLocations(pl.constructResourceList()); } PropertyConfigurer();  PropertyConfigurer(EncryptorRegistry registry); protected  PropertyConfigurer(StringEncryptor encryptor); static Map<String, String> getAllLoadedProperties(); void setPlaceholderPrefix(String placeholderPrefix); void setConfigHost(String configHost); void setDefaultConfig(Resource defaultConfig); void setConfigOverride(String configOverride); @Override void setBeanFactory(BeanFactory beanFactory); @Override void setBeanName(String beanName); @Override void postProcessBeanFactory(ConfigurableListableBeanFactory arg0); @Override int getOrder(); @Override void afterPropertiesSet(); static final String NO_DEFAULT; static final String HOSTNAME; }### Answer:
@Test public void testAfterPropertiesSet_NoConfigHost() throws Exception { System.getProperties().remove("ConfigHost"); pc.afterPropertiesSet(); }
@Test public void testAfterPropertiesSet_ConfigHostSet() throws Exception { System.getProperties().setProperty("ConfigHost", "TEST"); pc.afterPropertiesSet(); }
@Test public void testRemoteConfigurationFailure() throws Exception { System.getProperties().setProperty("ConfigHost", "http: pc.afterPropertiesSet(); }