### Question:
SamlIdentityProvider implements OAuth2IdentityProvider { @Override public boolean isEnabled() { return samlSettings.isEnabled(); } SamlIdentityProvider(SamlSettings samlSettings); @Override String getKey(); @Override String getName(); @Override Display getDisplay(); @Override boolean isEnabled(); @Override boolean allowsUsersToSignUp(); @Override void init(InitContext context); @Override void callback(CallbackContext context);  }### Answer:
@Test public void is_enabled() { setSettings(true); assertThat(underTest.isEnabled()).isTrue(); setSettings(false); assertThat(underTest.isEnabled()).isFalse(); }