@Test
public void testEquals() {

    String h = "Hello";
    String w = "World";
    IoBuffer hw1b = IoBuffer.wrap((h + w).getBytes());
    IoBuffer wh1b = IoBuffer.wrap((w + h).getBytes());
    IoBuffer hw2b = IoBuffer.newInstance();
    hw2b.add(ByteBuffer.wrap(h.getBytes()));
    hw2b.add(ByteBuffer.wrap(w.getBytes()));
    assertEquals(hw2b, hw1b);
    Assert.assertThat(wh1b, is(not(hw1b)));
}