@Test
public void testListReservationsInvalidTimeInterval() {

  ReservationListRequest request = new ReservationListRequestPBImpl();
  request.setQueue(ReservationSystemTestUtil.reservationQ);
  request.setEndTime(1000);
  request.setStartTime(2000);
  when(rSystem.getPlan(ReservationSystemTestUtil.reservationQ)).thenReturn
          (this.plan);
  Plan plan = null;
  try {
    plan = rrValidator.validateReservationListRequest(rSystem, request);
    Assert.fail();
  } catch (YarnException e) {
    Assert.assertNull(plan);
    String message = e.getMessage();
    Assert.assertTrue(message.equals("The specified end time must be " +
            "greater than the specified start time."));
    LOG.info(message);
  }
}