@Test
public void should_build_valid_integration_test_result() throws SonarMeasureNotFoundException {

    Measure measure = new Measure();
    measure.setValue(8D);
    when(sonarClient.findMeasure("artifactId", "it_coverage")).thenReturn(measure);
    SoftwareProjectId projectId = new SoftwareProjectId("artifactId");
    TestResult integrationTestResult = sonar.analyzeIntegrationTests(projectId);
    assertEquals(8, integrationTestResult.getCoverage(), 0);
}