@Test
public void testRootContainerWebUrl() throws Exception {
if (!this.doTests) return;
Fabric8ConnectorType connectorType = Fabric8TestHelpers.getJolokiaConnector();
Fabric8Connector con = new Fabric8Connector(connectorType);
try {
assertNotNull("Connector is null!", con);
con.connect();
assertNotNull("Connector Type is null!", con.getConnection());
Fabric8Facade fabric8 = con.getConnection().getFabricFacade();
assertNotNull("Fabric8 DTO is null!", fabric8);
ContainerDTO container = fabric8.getContainer("root");
assertNotNull("getContainer('root') returned NULL!", container);
assertNotNull("Root container has no web url (null)?!", container.getJMXUrl());
System.out.println("Web URL for container 'root' : " + container.getContainerWebURL());
} catch (IOException ex) {
fail(ex.getMessage());
} finally {
con.disconnect();
}
}