public TrackingResult track(Component component, Input<DefaultIssue> rawInput, @Nullable Input<DefaultIssue> targetInput) {
    if (analysisMetadataHolder.isPullRequest()) {
      return standardResult(pullRequestTracker.track(component, rawInput, targetInput));
    }

    if (isFirstAnalysisSecondaryBranch()) {
      Tracking<DefaultIssue, DefaultIssue> tracking = referenceBranchTracker.track(component, rawInput);
      return new TrackingResult(tracking.getMatchedRaws(), emptyMap(), empty(), tracking.getUnmatchedRaws());
    }

    return standardResult(tracker.track(component, rawInput));
  }
@Test
  public void delegate_regular_tracker() {
    when(analysisMetadataHolder.getBranch()).thenReturn(mock(Branch.class));

    underTest.track(component, rawInput, targetInput);

    verify(tracker).track(component, rawInput);
    verifyNoInteractions(prBranchTracker);
    verifyNoInteractions(mergeBranchTracker);
  }