// start bundle
bundle.start();
// asserts that test bundle is active
Assert.assertEquals(Bundle.ACTIVE, bundle.getState());
// asserts that test service is available within 2 seconds
Assert.assertNotNull(serviceTracker1.waitForService(2000));
// asserts that test service with custom properties is available
ServiceTracker serviceTracker2 = new ServiceTracker(bc, FrameworkUtil.createFilter(
"(&(" + Constants.OBJECTCLASS + "=org.knowhowlab.osgi.testing.it.commons.testbundle.service.Echo)" +
"(testkey=testvalue))"), null);
serviceTracker2.open();