@Override
  public Branch getBranch() {
    checkState(branch.isInitialized(), BRANCH_NOT_SET);
    return branch.getProperty();
  }
@Test
  public void getBranch_throws_ISE_when_holder_is_not_initialized() {
    assertThatThrownBy(() -> new AnalysisMetadataHolderImpl(editionProvider).getBranch())
      .isInstanceOf(IllegalStateException.class)
      .hasMessage("Branch has not been set");
  }