OutputMarshaller.writeWorkItem(outContext, workItem);
// unmarshall/deserialize workItem
byte [] byteArray = baos.toByteArray();
ByteArrayInputStream bais = new ByteArrayInputStream(byteArray);
MarshallerReaderContext inContext = new MarshallerReaderContext( bais, null, null,
new ObjectMarshallingStrategyStoreImpl(strats), Collections.EMPTY_MAP, true, true, null);
workItem = InputMarshaller.readWorkItem(inContext);
// Check
checkWorkItem(workItem, input);