@Test
public void testRegisterBeans() {

    AnnotatedBeanDefinitionRegistryUtils.registerBeans(registry, this.getClass());
    String[] beanNames = registry.getBeanNamesForType(this.getClass());
    Assert.assertEquals(1, beanNames.length);
    beanNames = registry.getBeanNamesForType(AnnotatedBeanDefinitionRegistryUtils.class);
    Assert.assertTrue(ObjectUtils.isEmpty(beanNames));
    AnnotatedBeanDefinitionRegistryUtils.registerBeans(registry);
}