connection.getRequestProperties();
EasyMock.expectLastCall().andReturn(new HashMap<String, List<String>>()).anyTimes();
control.replay();
AbstractThresholdOutputStream wrappedOS
= (AbstractThresholdOutputStream) message.getContent(OutputStream.class);
assertNotNull("expected output stream", wrappedOS);
wrappedOS.write(PAYLOAD.getBytes());
wrappedOS.unBuffer();
control.verify();
control.reset();
return wrappedOS;