### Question:
SamlSettings { String getProviderName() { return configuration.get(PROVIDER_NAME).orElseThrow(() -> new IllegalArgumentException("Provider Name is missing")); } SamlSettings(Configuration configuration);   }### Answer:
@Test public void return_provider_name() { settings.setProperty("sonar.auth.saml.providerName", "MyProviderName"); assertThat(underTest.getProviderName()).isEqualTo("MyProviderName"); }
@Test public void return_default_value_of_application_name() { assertThat(underTest.getProviderName()).isEqualTo("SAML"); }