ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
AnnotationRepositoryToMetaData repository = new AnnotationRepositoryToMetaData(TwoLifecycleMethodsBean.class, beanMetaData, canonicalObjectName, classLoader);
List<MetaDataBridge<InterceptorMetaData>> interceptorBridges = new ArrayList<MetaDataBridge<InterceptorMetaData>>();
interceptorBridges.add(new InterceptorMetaDataBridge());
repository.addComponentMetaDataLoaderFactory(new InterceptorComponentMetaDataLoaderFactory(interceptorBridges));
repository.addMetaDataBridge(new BeanInterceptorMetaDataBridge());
Method annotatedPostConstruct = TwoLifecycleMethodsBean.class.getMethod("annotatedPostConstruct");
assertFalse("Found annotated post construct, but metadata complete is true", repository.hasAnnotation(annotatedPostConstruct, PostConstruct.class));
Method otherPostConstruct = TwoLifecycleMethodsBean.class.getMethod("otherPostConstruct");