### Question:
SamlSettings { Optional<String> getGroupName() { return configuration.get(GROUP_NAME_ATTRIBUTE); } SamlSettings(Configuration configuration);   }### Answer:
@Test public void return_group_name_attribute() { settings.setProperty("sonar.auth.saml.group.name", "groupName"); assertThat(underTest.getGroupName().get()).isEqualTo("groupName"); }
@Test public void return_empty_group_name_when_no_setting() { assertThat(underTest.getGroupName()).isNotPresent(); }