public String getEffectiveMainBranchName() {
    return configuration.get(SONAR_PROJECTCREATION_MAINBRANCHNAME).orElse(DEFAULT_MAIN_BRANCH_NAME);
  }
@Test
  public void getEffectiveMainBranchName_givenDevelopInConfiguration_returnDevelop() {
    Configuration config = mock(Configuration.class);
    when(config.get(SONAR_PROJECTCREATION_MAINBRANCHNAME)).thenReturn(Optional.of("develop"));
    DefaultBranchNameResolver defaultBranchNameResolver = new DefaultBranchNameResolver(config);
    String effectiveMainBranchName = defaultBranchNameResolver.getEffectiveMainBranchName();

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