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

  Map<String, String> configs = new HashMap();
  configs.put(YarnConfiguration.RM_SCHEDULER_MINIMUM_ALLOCATION_VCORES, "4");
  configs.put(YarnConfiguration.RM_SCHEDULER_MAXIMUM_ALLOCATION_VCORES, "1");
  Configuration config = CapacitySchedulerConfigGeneratorForTest
          .createConfiguration(configs);
  CapacitySchedulerConfigValidator.validateVCores(config);
  fail(YarnConfiguration.RM_SCHEDULER_MINIMUM_ALLOCATION_VCORES +
          " should be > "
          + YarnConfiguration.RM_SCHEDULER_MAXIMUM_ALLOCATION_MB);
}