File destDir = new File(outputFolder.getRoot(), "testNamespace/config");
destDir.mkdirs();
FileUtils.copyFileToDirectory(new File(getConfigClassRegistry().getConfig().getSourcePath().get(0), "testNamespace/config/testComponent.as"),
destDir);
ConfigClass configClass = getConfigClassRegistry().getConfigClassByName("testNamespace.config.testComponent");
Assert.assertNotNull(configClass);
Assert.assertEquals("testNamespace.config", configClass.getPackageName());
Assert.assertEquals("testPackage.TestComponent", configClass.getComponentClassName());
Assert.assertEquals(5, configClass.getCfgs().size());
// 2nd try should return the same object
Assert.assertEquals(configClass, getConfigClassRegistry().getConfigClassByName("testNamespace.config.testComponent"));
}