@Override protected void checkResult(MessageExchange exchange) { NormalizedMessage fault = exchange.getMessage("fault"); assertNotNull(fault); assertNotNull(fault.getContent()); assertEquals(VALUE, fault.getProperty(KEY)); }
protected void transform(MessageExchange exchange, NormalizedMessage in, NormalizedMessage out) throws TransformerException, MessagingException { Object result = transformer.transform(in.getContent()); if (result instanceof Source) { out.setContent((Source) result); } else { throw new UnsupportedOperationException( "Support for Source transformation is not yet implemented"); } }