@Test
public void testValidateCSConfigStopALeafQueue() throws IOException {

  Configuration oldConfig = CapacitySchedulerConfigGeneratorForTest
          .createBasicCSConfiguration();
  Configuration newConfig = new Configuration(oldConfig);
  newConfig
          .set("yarn.scheduler.capacity.root.test1.state", "STOPPED");
  RMContext rmContext = prepareRMContext();
  Boolean isValidConfig = CapacitySchedulerConfigValidator
          .validateCSConfiguration(oldConfig, newConfig, rmContext);
  Assert.assertTrue(isValidConfig);
}