@Test (expected = YarnRuntimeException.class)
public void testValidateMemoryAllocationHIgherMinThanMaxMem() {

  Map<String, String> configs = new HashMap();
  configs.put(YarnConfiguration.RM_SCHEDULER_MINIMUM_ALLOCATION_MB, "8192");
  configs.put(YarnConfiguration.RM_SCHEDULER_MAXIMUM_ALLOCATION_MB, "1024");
  Configuration config = CapacitySchedulerConfigGeneratorForTest
          .createConfiguration(configs);
  CapacitySchedulerConfigValidator.validateMemoryAllocation(config);
  fail(YarnConfiguration.RM_SCHEDULER_MINIMUM_ALLOCATION_MB + " should be > "
          + YarnConfiguration.RM_SCHEDULER_MAXIMUM_ALLOCATION_MB);
}