`.array()` can return an array with different length.  I recommend using this pattern:

    ByteBuf expected = Unpooled.wrappedBuffer(new byte[] { ... });
    assertEquals(expected, channel.readInbound());

Same applies to all `.array()` comparisons in this pull requests.