SingleXAResource implements XAResource { @Override public int getTransactionTimeout() throws XAException { return delegate.getTransactionTimeout(); }  @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 assertGetTransactionTimeout() throws XAException { singleXAResource.getTransactionTimeout(); verify(xaResource).getTransactionTimeout(); }