* <code><alice><bob>charlie</bob><bob>david</bob></alice></code>
*/
@Test
public void testArray() throws Exception {
String input = "{\"bob\":[\"charlie\",\"david\"]}";
XMLStreamReader reader = new JsonXMLStreamReader(createSource(new StringReader(input), new QName("alice")), true, ':');
verify(reader, XMLStreamConstants.START_DOCUMENT, null, null);
reader.next();
verify(reader, XMLStreamConstants.START_ELEMENT, "alice", null);
reader.next();
verify(reader, XMLStreamConstants.PROCESSING_INSTRUCTION, null, null);
Assert.assertEquals(JsonXMLStreamConstants.MULTIPLE_PI_TARGET, reader.getPITarget());
Assert.assertEquals("bob", reader.getPIData());
reader.next();
verify(reader, XMLStreamConstants.START_ELEMENT, "bob", null);
reader.next();
verify(reader, XMLStreamConstants.CHARACTERS, null, "charlie");
reader.next();
verify(reader, XMLStreamConstants.END_ELEMENT, "bob", null);
reader.next();
verify(reader, XMLStreamConstants.START_ELEMENT, "bob", null);
reader.next();
verify(reader, XMLStreamConstants.CHARACTERS, null, "david");
reader.next();
verify(reader, XMLStreamConstants.END_ELEMENT, "bob", null);
reader.next();
verify(reader, XMLStreamConstants.END_ELEMENT, "alice", null);
reader.next();
verify(reader, XMLStreamConstants.END_DOCUMENT, null, null);
reader.close();
}