### Question:
PropertyConfigurer implements BeanFactoryAware, BeanNameAware, BeanFactoryPostProcessor, Ordered, InitializingBean { @Override public void postProcessBeanFactory(ConfigurableListableBeanFactory arg0) throws BeansException { propertyPlaceholderConfigurer.postProcessBeanFactory(arg0); } 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 testPostProcess() { final ConfigurableListableBeanFactory beanFactory = mock(ConfigurableListableBeanFactory.class); when(beanFactory.getBeanDefinitionNames()).thenReturn(new String[0]); pc.postProcessBeanFactory(beanFactory); }