public void testMultipleCharactersWithinSimpleTagEvent() throws Exception {
Map<String, Object> props = new HashMap<String, Object>();
JsonFactory factory = new JsonFactory();
Writer osWriter = new OutputStreamWriter(System.out);
JsonGenerator g;
g = factory.createJsonGenerator(osWriter);
final Stax2JacksonWriter s2jWriter = new Stax2JacksonWriter(g, null, null);
try {
s2jWriter.writeStartDocument();
s2jWriter.writeStartElement("simpleTag");
s2jWriter.writeCharacters("text1\n");
s2jWriter.writeCharacters("text2\n");
s2jWriter.writeEndElement();
s2jWriter.writeEndDocument();
} catch (XMLStreamException e) {
fail();
} finally {
g.flush();
System.out.println("");
}
}