@Test
public void getByteBuf() {

    byte[] correct = {(byte) 0x1, (byte) 0x2, (byte) 0x3, (byte) 0x4};
    ByteBuf data = byteValue.getByteBuf();
    assertThat(data.readableBytes(), is(4));
    assertThat(data.readByte(), is((byte) 0x1));
    assertThat(data.readByte(), is((byte) 0x2));
    assertThat(data.readByte(), is((byte) 0x3));
    assertThat(data.readByte(), is((byte) 0x4));
    assertThat(copyOfRange(data.array(), 0, 4), is(correct));
}