@Test
public void testWriteSampleType() throws Exception {

	JsonXMLObjectProvider provider = new JsonXMLObjectProvider(null);
	Annotation[] annotations = new Annotation[]{JsonXMLDefault.class.getAnnotation(JsonXML.class)};
	SampleType sampleType = new SampleType();
	sampleType.element = "hi!";
	StringWriter writer = new StringWriter();
	provider.write(SampleType.class,
			null, annotations, MediaType.APPLICATION_JSON_TYPE, null, writer, sampleType);
	String json = "{\"sampleType\":{\"element\":\"hi!\"}}";
	Assert.assertEquals(json, writer.toString());
}