@Test
public void testWrapInt() {

    ByteBuf buffer = copyInt(1, 4);
    assertEquals(8, buffer.capacity());
    assertEquals(1, buffer.readInt());
    assertEquals(4, buffer.readInt());
    assertFalse(buffer.isReadable());
    buffer.release();
    buffer = copyInt(null);
    assertEquals(0, buffer.capacity());
    buffer.release();
    buffer = copyInt(new int[] {});
    assertEquals(0, buffer.capacity());
    buffer.release();
}