@Test(expected = SonarMeasureNotFoundException.class)
public void should_throw_exception_when_resource_is_not_fond() throws SonarMeasureNotFoundException {

    when(sonar.find(Mockito.any(ResourceQuery.class))).thenReturn(null);
    sonarClient.findMeasure("artifactId", "measureKey");
}