@Override
  public void execute(Context context) {
    if (analysisMetadataHolder.isPullRequest() && targetInputFactory.hasTargetBranchAnalysis()) {
      int fixedIssuesCount = pullRequestFixedIssueRepository.getFixedIssues().size();
      measureRepository.add(treeRootHolder.getRoot(), metricRepository.getByKey(CoreMetrics.PULL_REQUEST_FIXED_ISSUES_KEY),
        Measure.newMeasureBuilder().create(fixedIssuesCount));
    }
  }
@Test
  public void execute_whenComponentIsPullRequest_shouldCreateMeasure() {
    when(analysisMetadataHolder.isPullRequest()).thenReturn(true);
    when(pullRequestFixedIssueRepository.getFixedIssues()).thenReturn(List.of(new DefaultIssue(), new DefaultIssue()));

    underTest.execute(new TestComputationStepContext());

    assertThat(measureRepository.getAddedRawMeasures(ROOT_REF)).hasSize(1);
    Optional<Measure> addedRawMeasure = measureRepository.getAddedRawMeasure(ROOT_REF, CoreMetrics.PULL_REQUEST_FIXED_ISSUES_KEY);
    MeasureAssert.assertThat(addedRawMeasure).hasValue(2);
  }