### Question:
SamlProxyConfiguration extends Configuration implements RestfulClientConfiguration, TrustStoreConfiguration, ServiceNameConfiguration, PrometheusConfiguration { public Optional<CountryConfiguration> getCountryConfiguration() { return Optional.ofNullable(country); } protected  SamlProxyConfiguration(); SamlConfiguration getSamlConfiguration(); Duration getMetadataValidDuration(); URI getFrontendExternalUri(); URI getPolicyUri(); MetadataResolverConfiguration getMetadataConfiguration(); @Override JerseyClientConfiguration getJerseyClientConfiguration(); URI getEventSinkUri(); URI getConfigUri(); Duration getCertificatesConfigCacheExpiry(); ServiceInfoConfiguration getServiceInfo(); @Override String getServiceName(); @Override ClientTrustStoreConfiguration getRpTrustStoreConfiguration(); @Override boolean getEnableRetryTimeOutConnections(); Optional<CountryConfiguration> getCountryConfiguration(); EventEmitterConfiguration getEventEmitterConfiguration(); boolean isEidasEnabled(); @Override boolean isPrometheusEnabled(); @Valid
    @JsonProperty
    public EventEmitterConfiguration eventEmitterConfiguration; }### Answer:
@Test public void shouldReturnCountryConfigOptionalIfCountryConfigNotNull() { SamlProxyConfiguration samlProxyConfiguration = new SamlProxyConfiguration(); CountryConfiguration countryConfiguration = new CountryConfiguration(null); samlProxyConfiguration.country = countryConfiguration; assertThat(samlProxyConfiguration.getCountryConfiguration()).isEqualTo(Optional.of(countryConfiguration)); }
@Test public void shouldReturnEmptyOptionalIfCountConfigNull() { SamlProxyConfiguration samlProxyConfiguration = new SamlProxyConfiguration(); assertThat(samlProxyConfiguration.getCountryConfiguration()).isEqualTo(Optional.empty()); }