@Test
public void testReferenceBeansMethodAnnotation() {

    ReferenceAnnotationBeanPostProcessor beanPostProcessor = context.getBean(BEAN_NAME,
            ReferenceAnnotationBeanPostProcessor.class);
    Collection<ReferenceBean<?>> referenceBeans = beanPostProcessor.getReferenceBeans();
    Assert.assertEquals(4, referenceBeans.size());
    ReferenceBean<?> referenceBean = referenceBeans.iterator().next();
    if ("helloService".equals(referenceBean.getId())) {
        Assert.assertNotNull(referenceBean.getMethods());
    }
}