EasyMock.replay(channel);
EasyMock.replay(factory);
EasyMock.replay(exchange);
EasyMock.replay(message);
InputStreamMessageContext ret = clientTransport.invoke(outCtx);
assertNotNull("invoke must not return null", ret);
assertNotNull("invoke must not return an emtpy context", ret.getInputStream());
EasyMock.verify(channel);
EasyMock.verify(factory);
EasyMock.verify(exchange);
EasyMock.verify(message);
BufferedReader reader = new BufferedReader(new InputStreamReader(ret.getInputStream()));
// throw away prolog
String s = reader.readLine();
assertNotNull(s);
// chop off the XML declaration