@Override
    public String getMetadata() {
        if (getEntityDescriptorElement() != null) {
            return Configuration.serializeSamlObject(getEntityDescriptorElement()).toString();
        }
        throw new TechnicalException("Metadata cannot be retrieved because entity descriptor is null");
    }
@Test
    public void resolveMetadataDocumentAsString() {
        metadataResolver.init();
        var metadata = metadataResolver.getMetadata();
        assertNotNull(metadata);
    }