InOut exchange = client.createInOutExchange();
exchange.getInMessage().setContent(getSourceFromClassPath("requestInvalid.xml"));
client.sendSync(exchange);
NormalizedMessage out = exchange.getOutMessage();
Fault fault = exchange.getFault();
Exception error = exchange.getError();
assertEquals("out", null, out);
assertNotNull("Should have a fault", fault);
System.out.println("error is: " + error);
System.out.println("Fault is...");
System.out.println(transformer.toString(fault.getContent()));
// TODO?
//assertEquals("error", null, error);
}