IType configClass = javaProject.findType("org.test.spring.SimpleConfigurationClass");
BeansJavaConfig config = new BeansJavaConfig(beansProject, configClass, "org.test.spring.SimpleConfigurationClass", IBeansConfig.Type.MANUAL);
assertEquals("java:org.test.spring.SimpleConfigurationClass", config.getElementName());
IBean configBean = BeansModelUtils.getBean("simpleConfigurationClass", config);
assertEquals("simpleConfigurationClass", configBean.getElementName());
IBean bean = BeansModelUtils.getBean("simpleScannedBean", config);
assertEquals("simpleScannedBean", bean.getElementName());
IBean processor1 = BeansModelUtils.getBean(AnnotationConfigUtils.CONFIGURATION_ANNOTATION_PROCESSOR_BEAN_NAME, config);
assertNotNull(processor1);
IBean processor2 = BeansModelUtils.getBean(AnnotationConfigUtils.AUTOWIRED_ANNOTATION_PROCESSOR_BEAN_NAME, config);
assertNotNull(processor2);
IBean processor3 = BeansModelUtils.getBean(AnnotationConfigUtils.REQUIRED_ANNOTATION_PROCESSOR_BEAN_NAME, config);
assertNotNull(processor3);
IBean processor4 = BeansModelUtils.getBean(AnnotationConfigUtils.COMMON_ANNOTATION_PROCESSOR_BEAN_NAME, config);
assertNotNull(processor4);
IBean processor5 = BeansModelUtils.getBean(AnnotationConfigUtils.PERSISTENCE_ANNOTATION_PROCESSOR_BEAN_NAME, config);
assertNotNull(processor5);
Set<IBean> beans = BeansModelUtils.getBeans(config);
assertEquals(7, beans.size());