assertNotNull( serviceA );
delay();
A a = getServiceFromConfiguration(componentA, A.class);
assertEquals( 1, a.getBs().size());
B b = getServiceFromConfiguration(componentB, B.class);
assertEquals( 1, b.getAs().size() );
//disabling (removing the A service registration) and re-enabling will
//result in a service event to B, so B will bind A.
disableAndCheck(componentA);
delay();
enableAndCheck(componentA.description);
delay();
//new component.id, refetch configuration.
componentA = findComponentConfigurationByName( componentNameA, ComponentConfigurationDTO.ACTIVE );
a = getServiceFromConfiguration(componentA, A.class);
assertEquals( 1, a.getBs().size());
b = getServiceFromConfiguration(componentB, B.class);
assertEquals( 1, b.getAs().size() );
}