// �����һ�Σ����Ȼ����
this.consumerConfig.setMaxFetchRetries(0);
final String topic = "topic1";
final int maxSize = 1024;
final Partition partition = new Partition("0-0");
final long offset = 12;
final Broker broker = new Broker(0, "meta://localhost:0");
final byte[] data =
MessageUtils.makeMessageBuffer(1111,
new PutCommand(topic, partition.getPartition(), "hello".getBytes(), null, 0, 0)).array();
final FetchRequest request =
new FetchRequest(broker, 0, new TopicPartitionRegInfo(topic, partition, offset), maxSize);
request.incrementRetriesAndGet();
assertEquals(1, request.getRetries());
EasyMock.expect(this.consumer.fetch(request, -1, null)).andReturn(new MessageIterator(topic, data));