@Test
public void orderShouldBePreservedWithDependencies() {
TestNG tng = create();
XmlSuite s = createXmlSuite("PreserveOrder");
XmlTest t = new XmlTest(s);
t.getXmlClasses().add(new XmlClass("test.preserveorder.ChuckTest4"));
t.getXmlClasses().add(new XmlClass("test.preserveorder.ChuckTest3"));
t.setPreserveOrder("true");
tng.setXmlSuites(Arrays.asList(s));
TestListenerAdapter tla = new TestListenerAdapter();
tng.addListener(tla);
tng.run();