@Test
public void testSiteLocalityThresholdConversion() {

  yarnConfig.set(FairSchedulerConfiguration.LOCALITY_THRESHOLD_NODE,
      "123.123");
  yarnConfig.set(FairSchedulerConfiguration.LOCALITY_THRESHOLD_RACK,
      "321.321");
  converter.convertSiteProperties(yarnConfig, yarnConvertedConfig, false,
    false);
  assertEquals("Locality threshold node", "123.123",
      yarnConvertedConfig.get(
          CapacitySchedulerConfiguration.NODE_LOCALITY_DELAY));
  assertEquals("Locality threshold rack", "321.321",
      yarnConvertedConfig.get(
          CapacitySchedulerConfiguration.RACK_LOCALITY_ADDITIONAL_DELAY));
}