@Test
public void testWrapBoolean() {

    ByteBuf buffer = copyBoolean(true, false);
    assertEquals(2, buffer.capacity());
    assertTrue(buffer.readBoolean());
    assertFalse(buffer.readBoolean());
    assertFalse(buffer.isReadable());
    buffer.release();
    buffer = copyBoolean(null);
    assertEquals(0, buffer.capacity());
    buffer.release();
    buffer = copyBoolean(new boolean[] {});
    assertEquals(0, buffer.capacity());
    buffer.release();
}