@Override
    public CaseInsensitiveString getName() {
        if (((name == null) || isEmpty(name.toString())) && packageDefinition != null) {
            return new CaseInsensitiveString(getPackageDefinition().getRepository().getName() + "_" + packageDefinition.getName());
        } else {
            return name;
        }
    }
@Test
    void shouldReturnNameAsNullIfPackageDefinitionIsNotSet() {
        assertThat(new PackageMaterial().getName()).isNull();
    }