// This will need to updated if the protocol for read changes
ChannelBuffer tmpEntry = bc.channel.getConfig().getBufferFactory().getBuffer(totalHeaderSize);
tmpEntry.writeInt(totalHeaderSize - 4);
tmpEntry.writeInt(new BookieProtocol.PacketHeader((byte)version, BookieProtocol.READENTRY, (short)0).toInt());
tmpEntry.writeLong(1);
tmpEntry.writeLong(1);
bc.channel.write(tmpEntry).awaitUninterruptibly();
readLatch.await(5, TimeUnit.SECONDS);
assertEquals("Expected result differs", expectedresult, outerrc.get());