"-d", OutputDirectoryPatch.getOutputDirectory(),
"-junit",
"-testclass", "test.sample.JUnitSample1",
"-suitename", "\""+suiteName+"\""
};
TestListenerAdapter tla = new TestListenerAdapter();
TestNG.privateMain(argv, tla);
List<ITestContext> contexts = tla.getTestContexts();
assertTrue(contexts.size()>0);
for (ITestContext context:contexts) {
assertEquals(context.getSuite().getName(),suiteName);
}
}