@Test
public void testReadSampleTypeList_DocumentArray() throws Exception {

	JsonXMLArrayProvider provider = new JsonXMLArrayProvider(null);
	Annotation[] annotations = new Annotation[]{JsonXMLDefault.class.getAnnotation(JsonXML.class)};
	Type type = getClass().getDeclaredField("sampleTypeList").getGenericType();
	String json = "[{\"sampleType\":{\"element\":\"hello\"}},{\"sampleType\":{\"element\":\"world\"}}]";
	@SuppressWarnings("unchecked")
	List<SampleType> list = (List<SampleType>)provider.read(List.class,
			type, annotations, MediaType.APPLICATION_JSON_TYPE, null, new StringReader(json));
	Assert.assertEquals(2, list.size());
	Assert.assertEquals("hello", list.get(0).element);
	Assert.assertEquals("world", list.get(1).element);
}