@Test
public void test23WriterAsContentHandler() throws Exception {

	
	CloseObservableWriter target = new CloseObservableWriter();
	try (MessageOutputStream stream = new MessageOutputStream(null, target, (IForwardTarget)null)) {
		ContentHandler handler = stream.asContentHandler();

		InputSource inputSource = new InputSource(new StringReader(testString)); 
		XmlUtils.parseXml(inputSource, handler);
	}
	String actual = new String (target.toString());
	//assertEquals("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"+testString, actual);
	assertEquals(testString, actual);
	assertTrue(target.isCloseCalled());
}