@Override
    public boolean isUsedInLabelTemplate(PipelineConfig pipelineConfig) {
        CaseInsensitiveString materialName = getName();
        return materialName != null && pipelineConfig.getLabelTemplate().toLowerCase().contains(String.format("${%s}", materialName.toLower()));
    }
@Test
    void shouldReturnFalseIfMaterialNameIsNotDefined() {
        AbstractMaterialConfig material = new TestMaterialConfig("test");
        PipelineConfig pipelineConfig = new PipelineConfig(new CaseInsensitiveString("blah"), "${COUNT}-${test}-test", "", false, null, new BaseCollection<>());
        assertThat(material.isUsedInLabelTemplate(pipelineConfig)).isFalse();
    }