@Test
public void testRollingMonitorIntervalLessThanSet() {

  this.conf.set(YarnConfiguration.MIN_LOG_ROLLING_INTERVAL_SECONDS, "1800");
  this.conf.set(YarnConfiguration
      .NM_LOG_AGGREGATION_ROLL_MONITORING_INTERVAL_SECONDS, "600");
  LogAggregationService logAggregationService =
          new LogAggregationService(dispatcher, this.context, this.delSrvc,
                  super.dirsHandler);
  logAggregationService.init(this.conf);
  long interval = logAggregationService.getRollingMonitorInterval();
  assertEquals(1800L, interval);
}