@Test
public void testRootArrayWithVirtualRoot() throws Exception {

	String input = "[\"bob\",\"bob\"]";
	JsonXMLInputFactory factory = new JsonXMLInputFactory();
	factory.setProperty(JsonXMLInputFactory.PROP_VIRTUAL_ROOT, new QName("alice"));
	XMLStreamReader reader = factory.createXMLStreamReader(new StringReader(input));
	verify(reader, XMLStreamConstants.START_DOCUMENT, null, null);
	reader.next();
	verify(reader, XMLStreamConstants.PROCESSING_INSTRUCTION, null, null);
	Assert.assertEquals(JsonXMLStreamConstants.MULTIPLE_PI_TARGET, reader.getPITarget());
	Assert.assertEquals("alice", reader.getPIData());
	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.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.close();
}