InterceptorAwareBeanFactoryPostProcessor implements BeanFactoryPostProcessor, InitializingBean { public InterceptorMetaDataBean createAndRegisterMetaDataBean(ConfigurableListableBeanFactory beanFactory) { List<InterceptorInfo> interceptors = interceptorResolutionStrategy.resolveRegisteredInterceptors(beanFactory); interceptors = interceptorOrderingStrategy.orderInterceptors(beanFactory, interceptors, getInterceptorOrder()); InterceptorMetaDataBean metaDataBean = new InterceptorMetaDataBean(interceptors); beanFactory.registerSingleton(INTERCEPTOR_META_DATA_BEAN, metaDataBean); return metaDataBean; } InterceptorAwareBeanFactoryPostProcessor();  InterceptorAwareBeanFactoryPostProcessor(InterceptorResolutionStrategy interceptorResolutionStrategy); @Override void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory); InterceptorMetaDataBean createAndRegisterMetaDataBean(ConfigurableListableBeanFactory beanFactory); @Override void afterPropertiesSet(); void setInterceptorOrder(List<Class> interceptorOrder); List<Class> getInterceptorOrder();  }
@Test public void testCreatedMetaDataBean() { Assert.assertTrue(postProcessor.createAndRegisterMetaDataBean(beanFactory).getInterceptors().size()>0); Assert.assertTrue(beanFactory.containsBean("interceptorMetaDataBean")); }