@Test
public void testNamespaceMappings() throws Exception {

	String input = "{\"foo:alice\":\"bob\"}";
	JsonXMLConfig config = new JsonXMLConfigBuilder().namespaceMapping("foo", "http://some-namespace").build();
	XMLStreamReader reader = new JsonXMLInputFactory(config).createXMLStreamReader(new StringReader(input));
	verify(reader, XMLStreamConstants.START_DOCUMENT, null, null);
	reader.next();
	verify(reader, XMLStreamConstants.START_ELEMENT, "alice", null);
	Assert.assertEquals("http://some-namespace", reader.getNamespaceURI());
	Assert.assertEquals(0, reader.getAttributeCount());
	reader.next();
	verify(reader, XMLStreamConstants.CHARACTERS, null, "bob");
	reader.next();
	verify(reader, XMLStreamConstants.END_ELEMENT, "alice", null);
	Assert.assertEquals("http://some-namespace", reader.getNamespaceURI());
	reader.next();
	verify(reader, XMLStreamConstants.END_DOCUMENT, null, null);
	reader.close();
}