Map<String, GlobalVariablesPropertyLoader> globalVariablesPropertyLoaders = beanDefinitionContext.getBeansOfType(GlobalVariablesPropertyLoader.class);
Assert.assertEquals(globalVariables.size(), 1L);
Assert.assertEquals(globalVariablesPropertyLoaders.size(), 1L);
GlobalVariables globalVariablesBean = globalVariables.values().iterator().next();
Assert.assertEquals(globalVariablesBean.getVariables().size(), 4L);
Assert.assertEquals(globalVariablesBean.getVariables().get("var1"), "val1");
Assert.assertEquals(globalVariablesBean.getVariables().get("var2"), "val2");
Assert.assertEquals(globalVariablesBean.getVariables().get("var3"), "val3");
Assert.assertEquals(globalVariablesBean.getVariables().get("property.load.test"), "Globale Variable geladen");
GlobalVariablesPropertyLoader globalVariablesPropertyLoaderBean = globalVariablesPropertyLoaders.values().iterator().next();
Assert.assertEquals(globalVariablesPropertyLoaderBean.getPropertyFiles().size(), 1L);
Assert.assertEquals(globalVariablesPropertyLoaderBean.getPropertyFiles().get(0), "classpath:com/consol/citrus/variable/loadtest.properties");
}