findBundle(OSGiAssert.getBundleContext(), EXAMPLE_BUNDLE_SYMBOLIC_NAME, Version.emptyVersion).start();
assertBundleState(Bundle.ACTIVE, EXAMPLE_BUNDLE_SYMBOLIC_NAME, Version.emptyVersion);
// Get the service reference
assertServiceAvailable(SimpleService.class);
SimpleService service = getService(OSGiAssert.getBundleContext(), SimpleService.class);
// Invoke the service
int sum = service.sum(1, 2, 3);
assertEquals(6, sum);
// Stop the bundle
findBundle(OSGiAssert.getBundleContext(), EXAMPLE_BUNDLE_SYMBOLIC_NAME, Version.emptyVersion).stop();
assertBundleState(Bundle.RESOLVED, EXAMPLE_BUNDLE_SYMBOLIC_NAME, Version.emptyVersion);