}
@Test
public void testReregistration() {
FederatedServiceRegistryImpl registry = new FederatedServiceRegistryImpl();
registry.addService("a1", TestA.class.getName(), map());
registry.setServiceStatus("a1", false);
List<FederatedServiceRegistryEntry> services = registry.getServices(
TestA.class.getName(), map());
assertEquals(0, services.size());
registry.addService("a1", TestA.class.getName(), map());
services = registry.getServices(TestA.class.getName(), map());
assertEquals(0, services.size());
registry.setServiceStatus("a1", true);
services = registry.getServices(TestA.class.getName(), map());
assertEquals(1, services.size());
}