marshallAndAssertEquality(mv);
}
public void testMarshalledValueGetMarshalling() throws Exception {
Pojo ext = new Pojo();
MarshalledValue mv = new MarshalledValue(ext, true, marshaller);
byte[] bytes = marshaller.objectToByteBuffer(mv);
MarshalledValue rmv = (MarshalledValue) marshaller.objectFromByteBuffer(bytes);
assert rmv.equals(mv) : "Writen[" + mv + "] and read[" + rmv + "] objects should be the same";
assert rmv.get() instanceof Pojo;
}