OutputStreamMessageContext outctx = EasyMock.createMock(OutputStreamMessageContext.class);
outctx.getOutputStream();
org.easymock.EasyMock.expectLastCall().andReturn(outStream);
StreamMessageContext ctx = new StreamMessageContextImpl(outctx);
EasyMock.replay(outctx);
assertSame(outStream, ctx.getOutputStream());
EasyMock.verify(outctx);
EasyMock.reset(outctx);
OutputStream out2 = EasyMock.createMock(OutputStream.class);
outctx.setOutputStream(out2);
EasyMock.replay(outctx);
ctx.setOutputStream(out2);
EasyMock.verify(outctx);
}