@Override
  protected void setUp() throws Exception {
    sq = new SimpleTimer(true);
    q = sq;

    oldService = ErrorService.getErrorCallback();
    serviceStub = new ErrorCallbackStub();
    ErrorService.setErrorCallback(serviceStub);
  }
 @Override
 protected void tearDown() throws Exception {
   ErrorService.setErrorCallback(oldService);
   assertEquals(0, serviceStub.getExceptionCount());
 }