PersistenceUtils pu = new PersistenceUtils();
InputStream is = pu.getContextAsInputStream(soapContext);
assert null != is;
MessageContext restored = pu.getContext(is);
assertEquals(3, restored.keySet().size());
assertEquals(soapContext.get(ObjectMessageContext.MESSAGE_INPUT),
restored.get(ObjectMessageContext.MESSAGE_INPUT));
Object[] params = (Object[])soapContext.get(ObjectMessageContext.METHOD_PARAMETERS);
Object[] restoredParams = (Object[])restored.get(ObjectMessageContext.METHOD_PARAMETERS);
assertEquals(params.length, restoredParams.length);