### Question:
ServerTransactionListener extends UnicastExportable implements Transaction, RemoteTransactionListener { public void setRollbackOnly() throws IllegalStateException, SystemException { throw new IllegalStateException("Cannot change the transaction state from this JVM. " + "Transaction is on remote client."); } ServerTransactionListener(final BlobStore store, final Map<String, String> hints,
                                   Exporter exporter); Operation<?> getNextOperation(); void postResult(Result<?> result); void commit(); boolean delistResource(XAResource xaRes, int flags); boolean enlistResource(XAResource xaRes); int getStatus(); void registerSynchronization(Synchronization sync); void rollback(); void setRollbackOnly(); XAResource getXAResource(RemoteXAResource res);  }### Answer:
@Test(expectedExceptions = {IllegalStateException.class}) public void testSetRollbackOnly() throws RemoteException, SystemException { st.setRollbackOnly(); }