### Question:
LeaseDuration { public long calcInitialLease(String requestedInitialLease) throws InvalidClusterException { return calcInitialLease(getTimestamp(requestedInitialLease)); } private  LeaseDuration(long initial, long max, long step); static Builder builder(); static LeaseDuration of(String initial, String max, String step); static LeaseDuration of(long initial, long max, long step); long getInitial(); long getMax(); long getStep(); long calcInitialLease(String requestedInitialLease); long calcInitialLease(long requestedInitialLease); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); static final LeaseDuration FOREVER_LEASE_DURATION; }### Answer:
@Test public void testCalcInitialLease() throws InvalidClusterException { LeaseDuration leaseDuration = LeaseDuration.of("15m", "0", "0"); Assert.assertEquals(2000, leaseDuration.calcInitialLease("2s")); }