@Test
public void testReadSampleType() throws Exception {

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