private OMElement serialize(String config) throws XMLStreamException {
PaypalMediator mediator = PaypalTestUtil.buildMediator("compact", PaypalTestUtil.
getConfiguration(config));
PaypalCompactSerializer serializer = new PaypalCompactSerializer(OMAbstractFactory.getOMFactory(),
XMLConfigConstants.SYNAPSE_OMNAMESPACE,
new OMNamespaceImpl(XMLConfigConstants.NULL_NAMESPACE, "nns"));
OMElement serializedElement = serializer.serializeMediator(null, mediator);
return serializedElement;
}