public String getEffectiveMainBranchName() {
    return configuration.get(SONAR_PROJECTCREATION_MAINBRANCHNAME).orElse(DEFAULT_MAIN_BRANCH_NAME);
  }
@Test
  public void getEffectiveMainBranchName_givenEmptyConfiguration_returnMain() {
    Configuration config = mock(Configuration.class);
    DefaultBranchNameResolver defaultBranchNameResolver = new DefaultBranchNameResolver(config);
    String effectiveMainBranchName = defaultBranchNameResolver.getEffectiveMainBranchName();

    assertThat(effectiveMainBranchName).isEqualTo("main");
  }