@Test
public void testMetadataConfiguration() throws Throwable {
ServiceController<?> controller = serviceContainer.getService(ConnectorServices.IRONJACAMAR_MDR);
assertNotNull(controller);
MetadataRepository repository = (MetadataRepository) controller.getValue();
assertNotNull(repository);
Set<String> ids = repository.getResourceAdapters();
assertNotNull(ids);
//on a running server it's always 2 beacause HornetQResourceAdapter is always present
assertEquals(1, ids.size());
for (String piId : ids) {
assertNotNull(piId);
System.out.println("PID:" + piId);
assertNotNull(repository.getResourceAdapter(piId));
}
}