@Test(expected = XMLStreamException.class)
public void testElementMultipleRoots() throws XMLStreamException {

	XMLStreamWriter writer = new JsonXMLOutputFactory().createXMLStreamWriter(new StringWriter());
	writer.writeStartDocument();
	writer.writeStartElement("foo");
	writer.writeEndElement();
	writer.writeStartElement("bar");
}