public void setTemplateEntriesForChild(CapacitySchedulerConfiguration conf,
                                         QueuePath childQueuePath) {
    setTemplateEntriesForChild(conf, childQueuePath, false);
  }
@Test
  public void testIgnoredTemplateWhenQueuePathIsInvalid() {
    QueuePath invalidPath = new QueuePath("a");
    conf.set(getTemplateKey(invalidPath, "capacity"), "6w");
    AutoCreatedQueueTemplate template =
        new AutoCreatedQueueTemplate(conf, invalidPath);
    template.setTemplateEntriesForChild(conf, TEST_QUEUE_AB);

    Assert.assertEquals("weight is set using invalid queue path", -1f,
        conf.getNonLabeledQueueWeight(TEST_QUEUE_AB), 10e-6);
  }