Assert.assertFalse(channel.writeInbound(fragment1));
Assert.assertFalse(channel.writeInbound(fragment2));
Assert.assertTrue(channel.writeInbound(fragment3));
MemcachedResponse response = (MemcachedResponse) channel.readInbound();
assertResponse(response, magic, opCode, dataType, Status.KEY_EXISTS, 0, 0, id, cas, key, body);
}
private static void assertResponse(MemcachedResponse response, byte magic, byte opCode, byte dataType, short status, int expires, int flags, int id, long cas, byte[] key, byte[] body) {
Assert.assertEquals(magic, response.magic());