@Test
public void testListReservationsInvalidTimeIntervalDefaults() {

  ReservationListRequest request = new ReservationListRequestPBImpl();
  request.setQueue(ReservationSystemTestUtil.reservationQ);
  // Negative time gets converted to default values for Start Time and End
  // Time which are 0 and Long.MAX_VALUE respectively.
  request.setEndTime(-2);
  request.setStartTime(-1);
  when(rSystem.getPlan(ReservationSystemTestUtil.reservationQ)).thenReturn
          (this.plan);
  Plan plan = null;
  try {
    plan = rrValidator.validateReservationListRequest(rSystem, request);
  } catch (YarnException e) {
    Assert.fail(e.getMessage());
  }
  Assert.assertNotNull(plan);
}