### Question:
ServerXAResource extends UnicastExportable implements RemoteXAResource { public ServerXAResource(XAResource xaRes, ServerTransactionListener txnListener, Exporter exporter) throws RemoteException { super(exporter); this.xaRes = xaRes; this.txnListener = txnListener; } 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 testServerXAResource() { assertTrue(sx.getExported() instanceof RemoteXAResource); }