// ignoring timeout exception
} catch (RemoteException e) {
assert e.getCause() instanceof TimeoutException;
// ignoring timeout exception
} finally {
tm.rollback();
}
}
private void assertNotLocked(Cache<String, String> c, String key) throws SystemException, NotSupportedException {
TransactionManager tm = TestingUtil.getTransactionManager(c);