### Question:
Providers { public boolean isZosfmUsed() { return authConfigurationProperties.getProvider().equalsIgnoreCase(LoginProvider.ZOSMF.toString()); }  boolean isZosmfAvailable(); boolean isZosfmUsed();  }### Answer:
@Test void givenZosmfAsAuthentication_whenInUseIsRequested_thenReturnTrue() { when(authConfigurationProperties.getProvider()).thenReturn(AuthenticationScheme.ZOSMF.getScheme()); assertThat(underTest.isZosfmUsed(), is(true)); }
@Test void givenSafIsUsedAsAuthentication_whenInUseIsRequested_thenReturnFalse() { when(authConfigurationProperties.getProvider()).thenReturn("saf"); assertThat(underTest.isZosfmUsed(), is(false)); }