@Override
  public void visitProject(Component project, Path<AnalysisFromSonarQube94Visitor.AnalysisFromSonarQube94> path) {
    measureRepository.add(project, analysisFromSonarQube94Metric, Measure.newMeasureBuilder().create(path.current().sonarQube94OrGreater));
  }
@Test
  public void visitProject_createMeasureForMetric() {
    Component project = builder(FILE).setUuid("uuid")
      .setKey("dbKey")
      .setName("name")
      .setStatus(Component.Status.SAME)
      .setReportAttributes(mock(ReportAttributes.class))
      .build();

    PathAwareVisitor.Path<AnalysisFromSonarQube94> path = mock(PathAwareVisitor.Path.class);
    when(path.current()).thenReturn(new AnalysisFromSonarQube94());

    underTest.visitProject(project, path);

    Measure expectedMeasure = Measure.newMeasureBuilder().create(true);
    verify(measureRepository).add(project, metric, expectedMeasure);
  }