@Test(expected = SonarProjectNotFoundException.class)
public void should_throw_exception_when_project_is_not_found() throws Exception {

    Projects projects = new Projects();
    when(genericSoftwareClient.resource(anyString(), eq(Projects.class), eq(MediaType.APPLICATION_XML_TYPE)))
            .thenReturn(projects);
    sonarClient.findProject("");
}