public boolean isEnabled() {
    return config.getBoolean(ENABLED).orElseThrow(DEFAULT_VALUE_MISSING) && clientId() != null && clientSecret() != null;
  }
@Test
  public void is_enabled_always_return_false_when_client_id_is_null() {
    settings.setProperty("sonar.auth.bitbucket.enabled", true);
    settings.setProperty("sonar.auth.bitbucket.clientId.secured", (String) null);
    settings.setProperty("sonar.auth.bitbucket.clientSecret.secured", "secret");

    assertThat(underTest.isEnabled()).isFalse();
  }