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

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