@Before
 public void inContext() {
   updatedFiles = newArrayList();
   core = new DefaultInfinitestCore(mock(TestRunner.class), new ControlledEventQueue());
   testDetector = mock(TestDetector.class);
   when(testDetector.getCurrentTests()).thenReturn(Collections.<String>emptySet());
   core.setTestDetector(testDetector);
 }
 private void testsToExpect(JavaClass... tests) {
   when(testDetector.findTestsToRun(updatedFiles)).thenReturn(newHashSet(tests));
 }