this.idGenerator = new IdGenerator();
this.remotingClient = EasyMock.createMock(RemotingClient.class);
this.sessionId = this.idGenerator.generateId();
this.session = new MockSession(this.sessionId);
this.context =
new TransactionContext(this.remotingClient, null, this.session, new LongSequenceGenerator(), 0,
DEFAULT_REQ_TIMEOUT);
this.context.setUniqueQualifier(UNIQUE_QUALIFIER);
OpaqueGenerator.resetOpaque();
}