Using EasyMock in testing