@Test
public void testMarshall() {

  Parameters p = new Parameters();
  p.set("A", "B");
  p.set("C", "D");
  p.marshall("target/test-classes/test2.xml");
  p.marshall();
  
  // test.xml =? test2.xml
  try {
    
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    DocumentBuilder db;
    db = dbf.newDocumentBuilder();
    
    File xml1 = new File(ParametersTest.class.getClassLoader().getResource("simple.xml").getPath());
    Document doc1 = db.parse(xml1);
    assertEquals(doc1.getDocumentElement().getChildNodes().getLength(), 5);
    
    File xml2 = new File("target/test-classes/test2.xml");
    Document doc2 = db.parse(xml2);
    assertEquals(doc2.getDocumentElement().getChildNodes().getLength(), 5);
    
    // assertXMLEqual(doc1, doc2);
    
  } catch (Exception e) {
    e.printStackTrace();
  }
}