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

    Object resourceCall = client.resource(anyString(), any(Class.class), eq(APPLICATION_XML_TYPE));
    when(resourceCall).thenThrow(new ResourceNotFoundException("not found"));
    URL url = new URL("http://www.google.fr");
    sonar.getSoftwareId(url, properties);
}