}
public void test_SourceResult() throws MessageDeliverException, RegistryException, FaultMessageException {
ServiceInvoker invoker = new ServiceInvoker("Transform", "String");
Message message = MessageFactory.getInstance().getMessage();
SourceResult sourceResult = new SourceResult();
StringResult result = new StringResult();
sourceResult.setSource(new ByteSource(personXmlBytes));
sourceResult.setResult(result);
message.getBody().add(sourceResult);
message = invoker.deliverSync(message, 30000);
assertEquals("<someone called=\"Tom Fennelly\" is=\"21\">", result.getResult());