@Test
public void testStartContainer() 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.getCurrentContainer();
assertNotNull("getCurrentContainer() returned NULL!", container);
// TODO: create a new container, start it and check if state is started, delete container
fabric8.startContainer(container);
} catch (IOException ex) {
fail(ex.getMessage());
} finally {
con.disconnect();
}
}