@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        GitMaterial that = (GitMaterial) o;
        return Objects.equals(url, that.url) &&
                Objects.equals(refSpecOrBranch, that.refSpecOrBranch) &&
                Objects.equals(submoduleFolder, that.submoduleFolder);
    }
@Test
    void shouldNotBeEqualWhenUrlDifferent() {
        Material material1 = MaterialsMother.gitMaterials("url1").get(0);
        Material material2 = MaterialsMother.gitMaterials("url2").get(0);
        assertThat(material1.equals(material2)).isFalse();
        assertThat(material2.equals(material1)).isFalse();
    }