buffer.putInt(OTHER_TEST_VALUE);
initRefBlock(buffer, SerializationConstants.FIRST_OBJECT_ID);
initRefBlock(buffer, SerializationConstants.FIRST_OBJECT_ID+1);
buffer.flip();
DeserializationContext dc = new DeserializationContext();
Pojo pojo1 = retrievePojo(dc, buffer, TEST_VALUE);
Pojo pojo2 = retrievePojo(dc, buffer, OTHER_TEST_VALUE);
Pojo pojo3 = retrievePojo(dc, buffer, TEST_VALUE);
Pojo pojo4 = retrievePojo(dc, buffer, OTHER_TEST_VALUE);
assertSame(pojo1, pojo3);
assertSame(pojo2, pojo4);
}