this.remotingClient.invokeToGroup(url, new PutCommand(topic, partition.getPartition(), data, flag, CheckSum.crc32(data),
null, Integer.MIN_VALUE), 3000, TimeUnit.MILLISECONDS)).andReturn(
new BooleanCommand(200, "1111 1 1024", Integer.MIN_VALUE));
this.mocksControl.replay();
assertEquals(0, message.getId());
final SendResult sendResult = this.producer.sendMessage(message);
this.mocksControl.verify();
assertTrue(sendResult.isSuccess());
assertEquals(1024, sendResult.getOffset());
assertEquals(1, sendResult.getPartition().getPartition());
assertEquals(0, sendResult.getPartition().getBrokerId());
assertEquals(1111, message.getId());
}