code: public DriverRestarted getDriverRestarted() {
      final Set<String> expectedEvaluatorIds = new HashSet<>();
      for (final MockAllocatedEvaluator allocatedEvaluator : this.allocatedEvaluators) {
        expectedEvaluatorIds.add(allocatedEvaluator.getId());
      }
      return new DriverRestarted() {
        @Override
        public int getResubmissionAttempts() {
          return restartAttemps;
        }
  
        @Override
        public StartTime getStartTime() {
          return startTime;
        }
  
        @Override
        public Set<String> getExpectedEvaluatorIds() {
          return expectedEvaluatorIds;
        }
      };
    }
docs: Generate a DriverRestarted event to be passed to the
  {@link org.apache.reef.driver.parameters.DriverRestartHandler}.
  @return DriverRestarted event based on the state at the time of driver failure