public void testTransform() throws Exception
{
MuleClient client = muleContext.getClient();
MuleMessage message = client.send(String.format("http://localhost:%d/RemoteService", httpPort1.getNumber()), "payload", null);
assertNotNull(message);
GZipUncompressTransformer gu = new GZipUncompressTransformer();
gu.setMuleContext(muleContext);
gu.setReturnDataType(DataTypeFactory.STRING);
assertNotNull(message.getPayload());
String result = (String)gu.transform(message.getPayloadAsBytes());
assertEquals("<string>payload</string>", result);
}