public void testRemoteCommit() throws Exception {
assertCommitRollback(0, 0, txInterceptor2);
tm.begin();
assertCommitRollback(0, 0, txInterceptor2);
//enlist another resource adapter to force TM to execute 2PC (otherwise 1PC)
tm.getTransaction().enlistResource(new XAResourceAdapter());
cache2.put("key", "value");
assertCommitRollback(0, 0, txInterceptor2);
tm.commit();
assertCommitRollback(1, 0, txInterceptor2);
}