value = buffer.getInt();
assertEquals("Value doesn't match", SECOND_VALUE, value);
}
public void testCycle() {
CyclePojo pojo = new CyclePojo(null);
pojo.setPojo(pojo);
ByteBuffer buffer = ByteBuffer.allocate(1024);
SerializationContext sc = new SerializationContext();
sc.serialize(pojo, buffer);
buffer.flip();
checkClassDef(buffer, CyclePojo.class);