@Test
public void testPox() throws Exception {
interceptor.setRequestXslt(xslt);
interceptor.afterPropertiesSet();
DomPoxMessageFactory factory = new DomPoxMessageFactory();
DomPoxMessage message = factory.createWebServiceMessage();
transformer.transform(new ResourceSource(input), message.getPayloadResult());
MessageContext context = new DefaultMessageContext(message, factory);
Assert.assertTrue("Invalid interceptor result", interceptor.handleRequest(context, null));
StringResult expected = new StringResult();
transformer.transform(new SAXSource(SaxUtils.createInputSource(output)), expected);
StringResult result = new StringResult();
transformer.transform(message.getPayloadSource(), result);
assertXMLEqual(expected.toString(), result.toString());
}