public void testConvert() throws Exception
{
String projectdir = System.getProperty("basedir");
XMLObject xmlobj = new XMLObject(new TestObject());
String xml1 = new String(xmlobj.toByteArray("UTF-8"));
FileOutputStream os = new FileOutputStream(projectdir + "/target/test-object-1.xml");
os.write(xml1.getBytes());
os.close();
File file = new File(projectdir + "/target/test-object-1.xml");