Implementation implementation = waitForImplByName(null,
"LightManagerPanel");
Instance inst = implementation.createInstance(null, null);
LightManagerTester tester = (LightManagerTester) inst
.getServiceObject();
// Wait for the binding between components
try {
Thread.sleep(500);
} catch (InterruptedException e) {
e.printStackTrace();
}
try {
tester.testButtonLiving();
} catch (Exception exc) {
Assert.fail("testButtonLiving() -> " + exc.getMessage());
}
}