}
public void testUpdate() {
final int FIRST_VALUE = 4;
final int SECOND_VALUE = 7;
Pojo pojo = new Pojo(FIRST_VALUE);
ByteBuffer buffer = ByteBuffer.allocate(1024);
SerializationContext sc = new SerializationContext();
sc.serialize(pojo, buffer);
pojo.setValue(SECOND_VALUE);
sc.update(pojo, buffer);
buffer.flip();
checkClassDef(buffer, Pojo.class);
checkObjectHeader(buffer, SerializationConstants.FIRST_CLASS_ID);
int value = buffer.getInt();