client.poll(Arrays.asList(request), 1, time.milliseconds());
}
@Test
public void testSimpleRequestResponse() {
ProduceRequest produceRequest = new ProduceRequest((short) 1, 1000, Collections.<TopicPartition, ByteBuffer>emptyMap());
RequestHeader reqHeader = client.nextRequestHeader(ApiKeys.PRODUCE);
RequestSend send = new RequestSend(node.id(), reqHeader, produceRequest.toStruct());
ClientRequest request = new ClientRequest(time.milliseconds(), true, send, null);
awaitReady(client, node);
client.poll(Arrays.asList(request), 1, time.milliseconds());
assertEquals(1, client.inFlightRequestCount());
ResponseHeader respHeader = new ResponseHeader(reqHeader.correlationId());