@Test
public void testWrapFloat() {

    ByteBuf buffer = copyFloat(1, 4);
    assertEquals(8, buffer.capacity());
    assertEquals(1, buffer.readFloat(), 0.01);
    assertEquals(4, buffer.readFloat(), 0.01);
    assertFalse(buffer.isReadable());
    buffer.release();
    buffer = copyFloat(null);
    assertEquals(0, buffer.capacity());
    buffer.release();
    buffer = copyFloat(new float[] {});
    assertEquals(0, buffer.capacity());
    buffer.release();
}