@Test
public void testReadSampleRootElement() throws Exception {

	JsonXMLObjectProvider provider = new JsonXMLObjectProvider(null);
	Annotation[] annotations = new Annotation[0];
	String json = "{\"sampleRootElement\":{\"@attribute\":\"hello\",\"elements\":[\"world\"]}}";
	SampleRootElement sampleRootElement = (SampleRootElement)provider.read(SampleRootElement.class,
			null, annotations, MediaType.APPLICATION_JSON_TYPE, null, new StringReader(json));
	Assert.assertEquals("hello", sampleRootElement.attribute);
	Assert.assertEquals("world", sampleRootElement.elements.get(0));
}