### Question:
ServerXAResource extends UnicastExportable implements RemoteXAResource { public void rollback(Xid xid) throws XAException { xaRes.rollback(xid); } ServerXAResource(XAResource xaRes, ServerTransactionListener txnListener, Exporter exporter); void commit(Xid xid, boolean onePhase); void end(Xid xid, int flags); void forget(Xid xid); int getTransactionTimeout(); boolean isSameRM(RemoteXAResource remote); int prepare(Xid xid); Xid[] recover(int flag); void rollback(Xid xid); boolean setTransactionTimeout(int seconds); void start(Xid xid, int flags);  }### Answer:
@Test public void testRollback() throws RemoteException, XAException { reset(res); res.rollback(xid); replay(res); sx.rollback(xid); verify(res); }