@Test
public void testPutData() throws Exception {

    DataOutput2 out = new DataOutput2();
    out.writeInt(11);
    out.writeLong(1111L);
    b.putData(111L, out.buf, out.pos);
    DataInput2 in = b.getDataInput(111L, out.pos);
    assertEquals(11, in.readInt());
    assertEquals(1111L, in.readLong());
}