@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);
 }
 /** Creates a new core from the existing builder settings. */
 public InfinitestCore createCore() {
   TestRunner runner = createRunner();
   runner.setConcurrencyController(controller);
   DefaultInfinitestCore core = new DefaultInfinitestCore(runner, eventQueue);
   core.setName(coreName);
   core.setChangeDetector(new FileChangeDetector());
   core.setTestDetector(createTestDetector(filterList));
   core.setRuntimeEnvironment(runtimeEnvironment);
   return core;
 }