ExtremePojo response = (ExtremePojo)obj;
assertEquals(pojo, response);
}
public void testLightExtremePojo() {
ExtremePojo pojo = generateExtremePojoNode();
pojo = generateExtremePojoLink(pojo);
pojo = generateExtremePojoLink(pojo);
LightSerializationContext ctx = new LightSerializationContext();
LightDeserializationContext dctx = new LightDeserializationContext();
ByteBuffer buffer = ByteBuffer.allocate(1048576);
ctx.serialize(pojo, buffer);
buffer.flip();
Object obj = dctx.deserialize(buffer);
assertTrue("Object must be an ExtremePojo", obj instanceof ExtremePojo);
ExtremePojo response = (ExtremePojo)obj;
assertEquals(pojo, response);
}