@Test
public void toHexString() throws BufferException {

    ByteBuffer buffer = new ByteBuffer(TEST_BYTES1);
    //System.out.println("Hex String: '" + buffer.toHexString() + "'");
    Assert.assertEquals(true, buffer.toHexString().equals("48454c4c4f20574f524c44".toUpperCase()));
    Assert.assertEquals(true, buffer.toHexString(2, 2).equals("4c4c".toUpperCase()));
}