@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_whenComponentIsNotPullRequest_shouldNotCreateMeasure() {
    when(analysisMetadataHolder.isPullRequest()).thenReturn(false);

    underTest.execute(new TestComputationStepContext());

    assertThat(measureRepository.getAddedRawMeasures(ROOT_REF)).isEmpty();
  }