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

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