SingleXAResource implements XAResource { @Override public void commit(final Xid xid, final boolean b) throws XAException { delegate.commit(xid, b); }  @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 assertCommit() throws XAException { singleXAResource.commit(xid, true); verify(xaResource).commit(xid, true); }