### Question:
SamlSettings { String getApplicationId() { return configuration.get(APPLICATION_ID).orElseThrow(() -> new IllegalArgumentException("Application ID is missing")); } SamlSettings(Configuration configuration);   }### Answer:
@Test public void return_application_id() { settings.setProperty("sonar.auth.saml.applicationId", "MyApp"); assertThat(underTest.getApplicationId()).isEqualTo("MyApp"); }
@Test public void return_default_value_of_application_id() { assertThat(underTest.getApplicationId()).isEqualTo("sonarqube"); }
@Test public void return_provider_id() { settings.setProperty("sonar.auth.saml.applicationId", "http: assertThat(underTest.getApplicationId()).isEqualTo("http: }