@Test
public void testGetReferenceBeans() {

    ReferenceAnnotationBeanPostProcessor beanPostProcessor = context.getBean(BEAN_NAME,
            ReferenceAnnotationBeanPostProcessor.class);
    Collection<ReferenceBean<?>> referenceBeans = beanPostProcessor.getReferenceBeans();
    Assert.assertEquals(1, referenceBeans.size());
    ReferenceBean<?> referenceBean = referenceBeans.iterator().next();
    TestBean testBean = context.getBean(TestBean.class);
    Assert.assertNotNull(referenceBean.get());
}