@Test
public void testWriteArraySampleRootElement() throws Exception {

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