@Override
    public void getErrors(ErrorCollection errors, String parentLocation) {
        String location = this.getLocation(parentLocation);
        errors.checkMissing(location, "name", name);
        errors.checkMissing(location, "path", path);
    }
@Test
    public void shouldDeserializeFromAPILikeObject() {
        String json = """
                {
                      "name": "cobertura",
                      "path": "target/site/cobertura/index.html"
                    }""";
        CRTab deserializedValue = gson.fromJson(json,CRTab.class);

        assertThat(deserializedValue.getName(),is("cobertura"));
        assertThat(deserializedValue.getPath(),is("target/site/cobertura/index.html"));

        ErrorCollection errors = deserializedValue.getErrors();
        assertTrue(errors.isEmpty());
    }