// make sure the CDC has only a single IDC registered with the correct type
private static void checkCompositeDiscoveryContainer(final String aClassName, final CompositeDiscoveryContainer cdc) {
final Collection discoveryContainers = cdc.getDiscoveryContainers();
assertTrue("One IDiscoveryContainer must be registered with the CDC at this point: " + discoveryContainers, discoveryContainers.size() == 1);
for (final Iterator iterator = discoveryContainers.iterator(); iterator.hasNext();) {
final IDiscoveryLocator dl = (IDiscoveryLocator) iterator.next();
assertEquals(aClassName, dl.getClass().getName());
}
}