AbstractThresholdOutputStream wrappedOS
= (AbstractThresholdOutputStream) message.getContent(OutputStream.class);
assertNotNull("expected output stream", wrappedOS);
wrappedOS.write(PAYLOAD.getBytes());
wrappedOS.unBuffer();
control.verify();
control.reset();
return wrappedOS;