@Override
    public final MetadataResolver resolve(final boolean force) {
        if (force) {
            this.metadataResolver = prepareServiceProviderMetadata();
        }
        return this.metadataResolver;
    }
@Test
    public void resolveServiceProviderMetadataViaFile() {
        val configuration =
            initializeConfiguration(new FileSystemResource("target/out.xml"), "target/keystore.jks");
        final SAML2MetadataResolver metadataResolver = new SAML2ServiceProviderMetadataResolver(configuration);
        assertNotNull(metadataResolver.resolve());
    }