/* create 8 test leases which will throw definite exceptions
and add then to the renewal set. Each lease's expriation
time is 30 seconds greater than the previous one. */
long duration = 0;
TestLease[] lease = new TestLease[8];
TestLeaseProvider leaseProvider = null;
for (int i = 0; i < 8; ++i) {
duration = renewGrant * (i+1);
logger.log(Level.FINE, "Creating lease #" + i +
" with duration of " + duration +
" milliseconds.");
leaseProvider = (i < 4) ? earlyLeaseProvider :
lateLeaseProvider;
lease[i] =
leaseProvider.createNewLease(owner,
rstUtil.durToExp(duration));
logger.log(Level.FINE, "Adding lease #" + i + " to renewal set " +
"with membership duration = Lease.FOREVER.");
set.renewFor(lease[i], Lease.FOREVER);
}