@BeforeClass
  public static void inContext() throws InterruptedException {
    if (eventHistory == null) {
      InfinitestCoreBuilder builder =
          new InfinitestCoreBuilder(fakeEnvironment(), new FakeEventQueue());
      builder.setUpdateSemaphore(createMock(ConcurrencyController.class));
      builder.setFilter(new InfinitestTestFilter());
      InfinitestCore core = builder.createCore();
      collector = new ResultCollector(core);

      eventHistory = new EventSupport();
      core.addTestResultsListener(eventHistory);
      core.addTestQueueListener(eventHistory);

      core.update();
      eventHistory.assertRunComplete();
    }
  }
 @Override
 public void actionPerformed(ActionEvent e) {
   core.reload();
 }