@Test
public void test32ContentHandlerAsWriter() throws Exception {

	
	CloseObservableXmlWriter target = new CloseObservableXmlWriter();
	try (MessageOutputStream stream = new MessageOutputStream(null, target, (IForwardTarget)null, null, null)) {
	
		try (Writer writer = stream.asWriter()) {
			writer.write(testString);
		}
	}
	String actual = new String (target.toString());
	//assertEquals("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"+testString, actual);
	assertEquals(testString, actual);
	assertTrue(target.isCloseCalled());
}