private void runTest(Class<?> listenerClass, boolean addListener, boolean expected) {
XmlSuite s = createXmlSuite("ExecutionListener");
XmlTest t = createXmlTest(s, "Test", listenerClass.getName());
if (addListener) {
s.addListener(ExecutionListener.class.getName());
}
TestNG tng = create();
tng.setXmlSuites(Arrays.asList(s));
ExecutionListener.m_start = false;
ExecutionListener.m_finish = false;