@Test
public void testReadEmptyList() throws Exception {

	JsonXMLArrayProvider provider = new JsonXMLArrayProvider(null);
	Annotation[] annotations = new Annotation[0];
	Type type = getClass().getDeclaredField("sampleRootElementList").getGenericType();
	String json = "{}";
	@SuppressWarnings("unchecked")
	List<SampleRootElement> list = (List<SampleRootElement>)provider.read(List.class,
			type, annotations, MediaType.APPLICATION_JSON_TYPE, null, new StringReader(json));
	Assert.assertEquals(0, list.size());
}