@Test
public void testGetBeanConfigsWithIncludedConfigs() throws Exception {
beansProject.addConfig("importing-bean-config.xml", IBeansConfig.Type.MANUAL);
IBeansConfig config = beansProject.getConfig("importing-bean-config.xml");
Set<IBeansImport> imports = config.getImports();
assertEquals(1, imports.size());
IFile importedFile = (IFile) project.findMember("advanced-bean-config.xml");
Set<IBeansConfig> configs = beansProject.getConfigs(importedFile, false);
assertEquals(0, configs.size());
configs = beansProject.getConfigs(importedFile, true);
assertEquals(1, configs.size());
IBeansConfig importedConfig = configs.iterator().next();
assertEquals("advanced-bean-config.xml", importedConfig.getElementName());
}