@Override
    public void toJson(Map<String, Object> json, Revision revision) {
        json.put("folder", getFolder() == null ? "" : getFolder());
        json.put("scmType", "Dependency");
        json.put("location", pipelineName + "/" + stageName);
        json.put("action", "Completed");
        if (!CaseInsensitiveString.isBlank(getName())) {
            json.put("materialName", CaseInsensitiveString.str(getName()));
        }
    }
@Test
    void shouldReturnJson() {
        Map<String, Object> json = new LinkedHashMap<>();
        dependencyMaterial.toJson(json, create("pipeline", 10, "1.0.123", "stage", 1));

        assertThat(json.get("location")).isEqualTo("pipeline/stage");
        assertThat(json.get("scmType")).isEqualTo("Dependency");
        assertThat(json.get("folder")).isEqualTo("");
        assertThat(json.get("action")).isEqualTo("Completed");
    }