@Test
public void should_analyze_quality() throws SonarMeasureNotFoundException {

    SoftwareProjectId projectId = new SoftwareProjectId("artifactId");
    Measure generatedLines = new Measure();
    generatedLines.setValue(0D);
    when(sonarClient.findMeasure("artifactId", "coverage")).thenReturn(generatedLines);
    QualityResult result = sonar.analyzeQuality(projectId, "coverage");
    assertNotNull(result.getMeasure("coverage"));
}