@Test
public void testWriteObjectSampleType() throws Exception {

	JsonXML config = JsonXMLDefault.class.getAnnotation(JsonXML.class);
	SampleType sampleType = new SampleType();
	sampleType.element = "hi!";
	StringWriter writer = new StringWriter();
	JAXBContext context = JAXBContext.newInstance(SampleType.class);
	new JsonXMLBinder().writeObject(SampleType.class, config, context, writer, sampleType);
	String json = "{\"sampleType\":{\"element\":\"hi!\"}}";
	Assert.assertEquals(json, writer.toString());
}