@Test
public void testDocumentArray() throws Exception {

	String input = "[{\"alice\":\"bob\"},{\"alice\":\"bob\"}]";
	XMLStreamReader reader = new JsonXMLInputFactory().createXMLStreamReader(new StringReader(input));
	verify(reader, XMLStreamConstants.PROCESSING_INSTRUCTION, null, null);
	Assert.assertEquals(JsonXMLStreamConstants.MULTIPLE_PI_TARGET, reader.getPITarget());
	Assert.assertNull(reader.getPIData());
	reader.next();
	verify(reader, XMLStreamConstants.START_DOCUMENT, null, null);
	reader.next();
	verify(reader, XMLStreamConstants.START_ELEMENT, "alice", null);
	reader.next();
	verify(reader, XMLStreamConstants.CHARACTERS, null, "bob");
	reader.next();
	verify(reader, XMLStreamConstants.END_ELEMENT, "alice", null);
	reader.next();
	verify(reader, XMLStreamConstants.END_DOCUMENT, null, null);
	reader.next();
	verify(reader, XMLStreamConstants.START_DOCUMENT, null, null);
	reader.next();
	verify(reader, XMLStreamConstants.START_ELEMENT, "alice", null);
	reader.next();
	verify(reader, XMLStreamConstants.CHARACTERS, null, "bob");
	reader.next();
	verify(reader, XMLStreamConstants.END_ELEMENT, "alice", null);
	reader.next();
	verify(reader, XMLStreamConstants.END_DOCUMENT, null, null);
	Assert.assertFalse(reader.hasNext());
	reader.close();
}