verify(listener, times(1)).onTestFound(TestFile.fromClass(CLASS_1), TestId.ROOT, "test name");
}
@Test
public void notifies_when_all_test_classes_are_finished() {
MethodCallSpy spy = new MethodCallSpy();
SuiteListener listener = spy.createProxyTo(SuiteListener.class);
run(listener, new FakeTestClassDriver(), CLASS_1, CLASS_2);
assertThat("should happen once", spy.countCallsTo("onSuiteFinished"), is(1));
assertThat("should happen last", spy.getLastCall(), is("onSuiteFinished"));
}