@Test
public void testOSGi() throws Exception {
Registry registry = LocateRegistry.getRegistry(8085);
Object add = registry.lookup("AddService");
AddService addService = OSGiTestUtils.cast(add, AddService.class);
double sum = addService.add(1.0, 2.0);
Assert.assertEquals(3.0, sum, 0.0);
}