ObjectMarshallingStrategy[] newStrats
= new ObjectMarshallingStrategy[] {
MarshallerFactory.newSerializeMarshallingStrategy() };
ByteArrayInputStream bais = new ByteArrayInputStream(byteArray);
MarshallerReaderContext inContext = new MarshallerReaderContext( bais, null, null,
new ObjectMarshallingStrategyStore(newStrats), true, true, null);
inContext.wm = wm;
newFactHandle = InputMarshaller.readFactHandle(inContext);
inContext.close();
}
assertTrue( "Serialized FactHandle not the same as the original.", compareInstances(factHandle, newFactHandle) );
}