Assert.assertNotNull(messageBuilder.getPayloadData());
Assert.assertEquals(messageBuilder.getPayloadData().trim(), "<ns:TestMessage xmlns:ns=\"http://www.consol.com\">Hello Citrus</ns:TestMessage>");
Assert.assertEquals(messageBuilder.getMessageInterceptors().size(), 1);
Assert.assertTrue(messageBuilder.getMessageInterceptors().get(0) instanceof XpathMessageConstructionInterceptor);
XpathMessageConstructionInterceptor messageConstructionInterceptor = (XpathMessageConstructionInterceptor)messageBuilder.getMessageInterceptors().get(0);
Assert.assertEquals(messageConstructionInterceptor.getXPathExpressions().size(), 1);
Assert.assertEquals(messageConstructionInterceptor.getXPathExpressions().get("/ns:TestMessage/"), "newValue");
Assert.assertEquals(xmlValidationContext.isSchemaValidationEnabled(), false);
Assert.assertEquals(xmlValidationContext.getPathValidationExpressions().size(), 0L);
Assert.assertEquals(xmlValidationContext.getIgnoreExpressions().size(), 1);