@Test
public void testValidateMemoryAllocation() {

  Map<String, String> configs = new HashMap();
  configs.put(YarnConfiguration.RM_SCHEDULER_MINIMUM_ALLOCATION_MB, "1024");
  configs.put(YarnConfiguration.RM_SCHEDULER_MAXIMUM_ALLOCATION_MB, "8192");
  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.validateMemoryAllocation(config);
}