AbstractClientHandle extends LocalAbortable implements Identifiable<TransactionIdentifier> { public boolean abort() { if (commonAbort()) { parent.onTransactionAbort(this); return true; } return false; } AbstractClientHandle(final AbstractClientHistory parent, final TransactionIdentifier transactionId); @Override TransactionIdentifier getIdentifier(); boolean abort(); @Override final String toString();  }
@Test public void testAbort() throws Exception { doHandleOperation(handle); handle.abort(); final Envelope<?> envelope = backendProbe.expectMsgClass(Envelope.class); final AbortLocalTransactionRequest request = (AbortLocalTransactionRequest) envelope.getMessage(); Assert.assertEquals(TRANSACTION_ID, request.getTarget()); checkClosed(); }