@Test
public void test22WriterAsWriter() throws Exception {

	
	CloseObservableWriter target = new CloseObservableWriter();
	try (MessageOutputStream stream = new MessageOutputStream(null, target, (IForwardTarget)null)) {
		try (Writer writer = stream.asWriter()) {
			writer.write(testString);
		}
		
	}
	String actual = new String (target.toString());
	assertEquals(testString, actual);
	assertTrue(target.isCloseCalled());
}