private void checkNewTransactionFails(Object key) throws NotSupportedException, SystemException, HeuristicMixedException, HeuristicRollbackException {
DummyTransactionManager otherTM = dummyTm(OTHER_INDEX);
otherTM.begin();
otherCache.put(key, "should fail");
try {
otherTM.commit();
fail("RollbackException should have been thrown here.");
} catch (RollbackException e) {
//expected
}
}