* relaxedControl doesn't care about the order in which its mocks'
* methods are called. This is useful for mocks of immutable objects.
*/
relaxedCtrl = EasyMock.createControl();
defaultTx = relaxedCtrl.createMock(StoreTransaction.class);
expect(defaultTx.getConfiguration()).andReturn(new StoreTxConfig()).anyTimes();
otherTx = relaxedCtrl.createMock(StoreTransaction.class);
expect(otherTx.getConfiguration()).andReturn(new StoreTxConfig()).anyTimes();
relaxedCtrl.replay();
/*
* ctrl requires that the complete, order-sensitive sequence of actual
* method invocations on its mocks exactly match the expected sequence