@Test
public void testGetBuffers() throws Exception
{

    LinkBuffer b = new LinkBuffer(8);
    b.writeInt32(42);
    b.writeInt32(43);
    b.writeInt32(44);
    List<ByteBuffer> buffers = b.getBuffers();
    assertEquals(2, buffers.size());
    assertEquals(8, buffers.get(0).remaining());
    assertEquals(4, buffers.get(1).remaining());
    assertEquals(42, buffers.get(0).getInt());
    assertEquals(43, buffers.get(0).getInt());
    assertEquals(44, buffers.get(1).getInt());
}