@Test
public void testTextProperty() throws Exception {

	String input = "{\"alice\":{\"@charlie\":\"david\",\"@\":\"bob\"}}";
	XMLStreamReader reader = new JsonXMLInputFactory(new JsonXMLConfigBuilder().textProperty("@").build()).createXMLStreamReader(new StringReader(input));
	verify(reader, XMLStreamConstants.START_DOCUMENT, null, null);
	reader.next();
	verify(reader, XMLStreamConstants.START_ELEMENT, "alice", null);
	Assert.assertEquals(1, reader.getAttributeCount());
	Assert.assertEquals("david", reader.getAttributeValue(null, "charlie"));
	Assert.assertEquals("david", reader.getAttributeValue(XMLConstants.NULL_NS_URI, "charlie"));
	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();
}