@Test
public void newTestCount() {
JUnitCore runner = new JUnitCore();
MyListener listener = new MyListener();
runner.addListener(listener);
runner.run(Example.class);
assertEquals(1, listener.testCount);
}
public static class ExampleTest extends TestCase {
public void testEmpty() {