@Test
public void testWriteObjectSampleRootElement() throws Exception {

	JsonXML config = JsonXMLDefault.class.getAnnotation(JsonXML.class);
	SampleRootElement sampleRootElement = new SampleRootElement();
	sampleRootElement.attribute = "hello";
	sampleRootElement.elements = Arrays.asList("world");
	StringWriter writer = new StringWriter();
	JAXBContext context = JAXBContext.newInstance(SampleRootElement.class);
	new JsonXMLBinder().writeObject(SampleRootElement.class, config, context, writer, sampleRootElement);
	String json = "{\"sampleRootElement\":{\"@attribute\":\"hello\",\"elements\":\"world\"}}";
	Assert.assertEquals(json, writer.toString());
}