@Test
public void if_test_class_annotated_with_RunInDriverThread_then_does_not_use_the_Executor() {
RunListener runListener = mock(RunListener.class);
Executor executor = mock(Executor.class);
Class<AnnotatedWithRunInDriverThreadTest> testClass = AnnotatedWithRunInDriverThreadTest.class;
SuiteNotifier notifier = new ThreadBoundSuiteNotifier(ActorRef.wrap(runListener), new RunIdSequence(), new OutputCapturer());
DriverRunner driverRunner = new DriverRunner(new SimpleUnit(), testClass, notifier, executor);
driverRunner.run();
verifyZeroInteractions(executor);