assertNotNull(xml);
MuleClient client = new MuleClient(muleContext);
// this will submit the xml via a POST request
MuleMessage message = client.send("http://localhost:63081/validate", xml, null);
assertEquals("200", message.getInboundProperty(HttpConnector.HTTP_STATUS_PROPERTY));
xml = getClass().getResourceAsStream("validation2.xml");
message = client.send("http://localhost:63081/validate", xml, null);
assertEquals("406", message.getInboundProperty(HttpConnector.HTTP_STATUS_PROPERTY));
xml = getClass().getResourceAsStream("validation3.xml");
message = client.send("http://localhost:63081/validate", xml, null);
assertEquals("200", message.getInboundProperty(HttpConnector.HTTP_STATUS_PROPERTY));
}