@Test
public void canBeginRollback() {

    BeginTransactionMethodCall methodCall = new BeginTransactionMethodCall();
    methodCall.setTransactionTimeout( TimeUnit.SECONDS.toMillis( 1 ) );
    Message message = new Message();
    message.setSrc( address );
    message.setBuffer( objectBuffer.writeClassAndObject( methodCall ) );
    receiveAdapter.receive( message );
    Long transactionID = objectBuffer.readObjectData( response.getResponseBody(), long.class );
    CommitRollbackMethodCall commitRollbackMethodCall = new CommitRollbackMethodCall( false );
    commitRollbackMethodCall.setTransactionId( transactionID );
    message.setBuffer( objectBuffer.writeClassAndObject( commitRollbackMethodCall ) );
    receiveAdapter.receive( message );
    String exceptionAsString = response.getExceptionAsString();
    assertThat( exceptionAsString, is( nullValue() ) );
}