@Test
public void testWriteXmlTypeWithNamespace() throws Exception {

	JsonXML config = JsonXMLDefault.class.getAnnotation(JsonXML.class);
	JsonXMLMapper<SampleTypeWithNamespace> mapper =
			new JsonXMLMapper<SampleTypeWithNamespace>(SampleTypeWithNamespace.class, config);
	StringWriter writer = new StringWriter();
	SampleTypeWithNamespace value = new SampleTypeWithNamespace();
	mapper.writeObject(writer, value);
	writer.close();
	Assert.assertEquals("{\"ns2:sampleTypeWithNamespace\":{\"@xmlns:ns2\":\"urn:staxon:jaxb:test\"}}",
			writer.toString()); // TODO don't rely on prefix "ns2"
}