@Test
public void testValidateVCores() {

  Map<String, String> configs = new HashMap();
  configs.put(YarnConfiguration.RM_SCHEDULER_MINIMUM_ALLOCATION_VCORES, "1");
  configs.put(YarnConfiguration.RM_SCHEDULER_MAXIMUM_ALLOCATION_VCORES, "4");
  Configuration config = CapacitySchedulerConfigGeneratorForTest
          .createConfiguration(configs);
  // there is no need for assertion, since there is no further method call
  // inside the tested code and in case of a valid configuration no exception
  // is thrown
  CapacitySchedulerConfigValidator.validateVCores(config);
}