@Test
public void test1() throws XMLStreamException {

	StringReader json = new StringReader("{\"alice\":{\"@edgar\":\"david\",\"bob\":\"charlie\"}}");
	XMLEventReader reader = new JsonXMLInputFactory().createXMLEventReader(json);
	Document node = DOMEventConsumer.consume(reader);
	
	Node alice = node.getChildNodes().item(0);
	Assert.assertEquals("alice", alice.getLocalName());
	Assert.assertEquals("david", alice.getAttributes().getNamedItem("edgar").getNodeValue());
	
	Node bob = alice.getChildNodes().item(0);
	Assert.assertEquals("bob", bob.getLocalName());		
	Assert.assertEquals("charlie", bob.getTextContent());
}