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

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