public boolean isSecured() {
    return getBaseUrl().startsWith("https://");
  }
@Test
  public void is_secured_on_https_server() {
    settings.setProperty("sonar.core.serverBaseURL", "https://mydomain.com");

    assertThat(underTest().isSecured()).isTrue();
  }