@Test
public void binaryTest() {

    ByteBuffer myBuffer = ByteBuffer.allocate(4);
    myBuffer.put((byte) 0x88);
    myBuffer.put((byte) 0x03);
    myBuffer.put((byte) 0xFF);
    myBuffer.flip();
    int remaining = myBuffer.remaining();
    int pos = myBuffer.position();
    String dump = ByteBufferDumper.dump(myBuffer);
    System.err.println(dump);
    assertEquals("ByteBuffer[len=3,bytes='0x88 0x03 0xFF']", dump);
    assertEquals(remaining, myBuffer.remaining());
    assertEquals(pos, myBuffer.position());
}