Collection<String> hashComponents = testAPI.getRegisteredComponents();
TreeSet<String> sortedComponents = new TreeSet<String>(hashComponents);
TestBedConfiguration testbedConfig = TestBedConfiguration.getInstance();
for (String componentName: sortedComponents) {
boolean componentPresentInTestbed = true;
ComponentFactory componentFactory = testAPI.getComponentFactory(componentName);
if (componentFactory instanceof SingletonComponentFactory) {
componentPresentInTestbed = !testbedConfig.configurationsAt("singleton_components." + componentName).isEmpty();
} else if (componentFactory instanceof MultipleInstancesComponentFactory) {
componentPresentInTestbed = !testbedConfig.configurationsAt("multiple_instances_components." + componentName).isEmpty();
}