@VisibleForTesting
  long getDecayPeriodMillis() {
    return decayPeriodMillis;
  }
@Test
  @SuppressWarnings("deprecation")
  public void testParsePeriodWithPortLessCostProvider() {
    // By default
    scheduler = new DecayRpcScheduler(1, "ipc.52", new Configuration());
    assertEquals(DecayRpcScheduler.IPC_SCHEDULER_DECAYSCHEDULER_PERIOD_DEFAULT,
        scheduler.getDecayPeriodMillis());

    // Custom
    Configuration conf = new Configuration();
    conf.setLong("ipc.52." + DecayRpcScheduler.IPC_FCQ_DECAYSCHEDULER_PERIOD_KEY,
        1058);
    conf.unset("ipc.52." + CommonConfigurationKeys.IPC_COST_PROVIDER_KEY);
    conf.set("ipc." + CommonConfigurationKeys.IPC_COST_PROVIDER_KEY,
        "org.apache.hadoop.ipc.TestDecayRpcScheduler$TestCostProvider");
    scheduler = new DecayRpcScheduler(1, "ipc.52", conf);
    assertEquals(1058L, scheduler.getDecayPeriodMillis());
  }