@Test
public void testWriteArraySampleRootElementWithNull2() throws Exception {

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