assertEquals("java.util.ArrayList", confLoaded.getContent().getClassName());
}
@Test
public void testLoadGlobalConfiguration_shouldOnlyLoadOneConfig() throws Exception {
GlobalConfiguration conf1 = new GlobalConfiguration(new GlobalDeclaration("java.util.List", "list"));
GlobalConfiguration conf2 = new GlobalConfiguration(new GlobalDeclaration("java.util.Map", "map"));
GlobalConfiguration conf3 = new GlobalConfiguration(new GlobalDeclaration("java.util.Dictionary", "dict"));
service.persist(conf1);
service.persist(conf2);
service.persist(conf3);
List<ConfigItem<GlobalDeclaration>> loaded = service.load(conf2.getMetaData());
assertEquals(1, loaded.size());
GlobalConfiguration confLoaded = (GlobalConfiguration) loaded.get(0);
assertEquals("java.util.Map", confLoaded.getContent().getClassName());
assertEquals("map", confLoaded.getContent().getVariableName());
}