suite.setName("Suite");
XmlTest test = new XmlTest(suite);
test.setName("Test");
XmlClass c1 = new XmlClass(B.class);
c1.setIncludedMethods(Arrays.asList(new XmlInclude[] { new XmlInclude("b")}));
XmlClass c2 = new XmlClass(Base.class);
c2.setIncludedMethods(Arrays.asList(new XmlInclude[] { new XmlInclude("b")}));
test.setXmlClasses(Arrays.asList(new XmlClass[] { c1, c2 }));
TestNG tng = new TestNG();
tng.setVerbose(0);
tng.setXmlSuites(Arrays.asList(new XmlSuite[] { suite }));