@Test
public void testWriteArraySampleType() throws Exception {

	JsonXML config = JsonXMLDefault.class.getAnnotation(JsonXML.class);
	List<SampleType> list = new ArrayList<SampleType>();
	list.add(new SampleType());
	list.get(0).element = "hello";
	list.add(new SampleType());
	list.get(1).element = "world";
	StringWriter writer = new StringWriter();
	JAXBContext context = JAXBContext.newInstance(SampleType.class);
	new JsonXMLBinder().writeArray(SampleType.class, config, context, writer, list);
	String json = "[{\"sampleType\":{\"element\":\"hello\"}},{\"sampleType\":{\"element\":\"world\"}}]";
	Assert.assertEquals(json, writer.toString());
}