@Test
public void testWrapShortFromShortArray() {

    ByteBuf buffer = copyShort(new short[]{1, 4});
    assertEquals(4, buffer.capacity());
    assertEquals(1, buffer.readShort());
    assertEquals(4, buffer.readShort());
    assertFalse(buffer.isReadable());
    buffer.release();
    buffer = copyShort((short[]) null);
    assertEquals(0, buffer.capacity());
    buffer.release();
    buffer = copyShort(new short[] {});
    assertEquals(0, buffer.capacity());
    buffer.release();
}