SingleXAResource implements XAResource { @Override public void rollback(final Xid xid) throws XAException { delegate.rollback(xid); }  @Override void commit(final Xid xid, final boolean b); @Override void end(final Xid xid, final int i); @Override void forget(final Xid xid); @Override int getTransactionTimeout(); @Override boolean isSameRM(final XAResource xaResource); @Override int prepare(final Xid xid); @Override Xid[] recover(final int i); @Override void rollback(final Xid xid); @Override boolean setTransactionTimeout(final int i); @Override void start(final Xid xid, final int i);  }
@Test public void assertRollback() throws XAException { singleXAResource.rollback(xid); verify(xaResource).rollback(xid); }