Assert.assertNotNull(cybernode);
Throwable thrown = null;
try {
OperationalStringManager mgr = testManager.getOperationalStringManager();
Assert.assertNotNull("Expected non-null OperationalStringManager", mgr);
OperationalString opstring = mgr.getOperationalString();
Assert.assertNotNull(opstring);
Assert.assertEquals(1, opstring.getServices().length);
ServiceElement elem = opstring.getServices()[0];
Assert.assertNotNull("Expected a non-null ExecDescriptor", elem.getExecDescriptor());
testManager.waitForDeployment(mgr);
String jvmVersion = System.getProperty("java.version");
if(jvmVersion.contains("1.5")) {
logger.info("The JMX Attach APIs require Java 6 or above. You are running Java "+jvmVersion);
} else {
RuntimeMXBean runtime = attach("T62___W_FL___SK_-1");
Assert.assertNotNull("Expected a RuntimeMXBean", runtime);
verifyJVMArgs(runtime, elem.getExecDescriptor());
}
ServiceBeanInstance[] instances = cybernode.getServiceBeanInstances(opstring.getServices()[0]);
Assert.assertEquals(1, instances.length);
Fork fork = (Fork)instances[0].getService();
Assert.assertTrue("Expected verify() to return true, check service log for details", fork.verify());
//logger.info("Wait for 5 minutes, make sure that only one service remains....");
//Thread.sleep(TimeUnit.MINUTES.toMillis(5));