@Test(expected = SoftwareNotFoundException.class)
public void should_throw_exception_if_url_is_not_sonar() throws Exception {

    when(client.exist(anyString(), any(Class.class))).thenReturn(false);
    URL url = new URL("http://www.google.fr");
    sonar.getSoftwareId(url, properties);
}