private static ProvisioningTester createTester(Duration rebootInterval, InMemoryFlagSource flagSource) {
        flagSource = flagSource.withIntFlag(PermanentFlags.REBOOT_INTERVAL_IN_DAYS.id(), (int) rebootInterval.toDays());
        ProvisioningTester tester = new ProvisioningTester.Builder().flagSource(flagSource).build();
        tester.clock().setInstant(Instant.ofEpochMilli(1605522619000L)); // Use a fixed random seed
        ((MockCurator) tester.getCurator()).setZooKeeperEnsembleConnectionSpec("zk1.host:1,zk2.host:2,zk3.host:3");
        return tester;
    }
Returns the subset of the given nodes which have the given current reboot generation
node-repository/src/test/java/com/yahoo/vespa/hosted/provision/maintenance/NodeRebooterTest.java