@Test
public void testHandlePrepare() throws Exception {
final String sessionId = "test";
final LocalTransactionId transactionId = new LocalTransactionId(sessionId, 1);
final TransactionInfo info = new TransactionInfo(transactionId, sessionId, TransactionType.PREPARE);
final TransactionCommand tc = new TransactionCommand(info, 1);
EasyMock.expect(
this.commandProcessor.prepareTransaction(new SessionContextImpl(sessionId, this.conn), transactionId))
.andReturn(XAResource.XA_OK);
this.conn.response(new BooleanCommand(HttpStatus.Success, String.valueOf(XAResource.XA_OK), 1));
this.mockSessionContext(sessionId, sessionId);