osgi.waitForService(TransactionManager.class.getName(), null, 5000);
CheckService cs = (CheckService) osgi.getServiceObject(ref);
TransactionManager tm = (TransactionManager) osgi.getServiceObject(TransactionManager.class.getName(), null);
tm.begin();
Transaction t = tm.getTransaction();
cs.doSomethingGood();
Transaction t2 = cs.getCurrentTransaction();
Assert.assertNotSame(t2, t); // Two different transactions
// Check that t2 is commited => no transaction
Assert.assertEquals(Status.STATUS_NO_TRANSACTION, t2.getStatus());
t.commit();