EasyMock.expect(this.producerZooKeeper.selectBroker(topic, partition)).andReturn(url);
EasyMock.expect(
this.remotingClient.invokeToGroup(url,
new GetCommand(topic, this.consumerConfig.getGroup(), partition.getPartition(), offset, maxSize,
Integer.MIN_VALUE), 10000, TimeUnit.MILLISECONDS)).andReturn(
new DataCommand(data, Integer.MIN_VALUE));
this.mocksControl.replay();
OpaqueGenerator.resetOpaque();
assertEquals(messageIterator, this.consumer.get(topic, partition, offset, maxSize));
this.mocksControl.verify();
}