}
@Test
public void testProcessingInstruction() throws XMLStreamException {
XMLStreamReader reader = createXmlStreamReader("<? joe ?>");
ProcessingInstruction processingInstruction = (ProcessingInstruction)eventAllocator.allocate(reader);
verify(processingInstruction, XMLStreamConstants.PROCESSING_INSTRUCTION, "<?joe?>");
Assert.assertEquals("joe", processingInstruction.getTarget());
Assert.assertNull(processingInstruction.getData());
reader = createXmlStreamReader("<?joe jim?>");
processingInstruction = (ProcessingInstruction)eventAllocator.allocate(reader);
Assert.assertEquals("joe", processingInstruction.getTarget());
Assert.assertEquals("jim", processingInstruction.getData());
}