@Test
public void test11StreamAsStream() throws Exception {

	
	CloseObservableOutputStream target = new CloseObservableOutputStream();
	try (MessageOutputStream stream = new MessageOutputStream(null, target, (IForwardTarget)null)) {
		try (OutputStream outputstream = stream.asStream()) {
			outputstream.write(testString.getBytes());
		}
	}
	
	String actual = new String (target.toByteArray());
	assertEquals(testString, actual);
	assertTrue(target.isCloseCalled());
}