* <code><alice><bob>charlie</bob><bob>david</bob></alice></code>
*/
@Test
public void testArray() throws Exception {
StringWriter result = new StringWriter();
JsonXMLStreamWriter writer = createXmlStreamWriter(result, new QName("alice"));
writer.writeStartDocument();
writer.writeStartElement("alice");
writer.writeStartArray("bob");
writer.writeStartElement("bob");
writer.writeCharacters("charlie");
writer.writeEndElement();
writer.writeStartElement("bob");
writer.writeCharacters("david");
writer.writeEndElement();
writer.writeEndArray();
writer.writeEndElement();
writer.writeEndDocument();
writer.close();
Assert.assertEquals("{\"bob\":[\"charlie\",\"david\"]}", result.toString());
}