// with bug AMQ-4950 the thrown error reads "Cannot call prepare now"
// we check that we receive the original exception message as
// thrown by the BrokerPlugin
assertEquals(simulatedExceptionMessage, xae.getMessage());
resource.rollback(tid);
}
// couple of assertions
assertTransactionGoneFromBroker(tid);
assertTransactionGoneFromConnection(broker.getBrokerName(), xaConnection.getClientID(), xaConnection.getConnectionInfo().getConnectionId(), tid);
assertTransactionGoneFromFailoverState(xaConnection, tid);