@Test
public void should_get_incompatible_property_when_version_is_inferior_of_24() throws Exception {

    when(sonarDetector.isSonarPropertiesPage(any(URL.class))).thenReturn(true);
    when(sonarVersionExtractor.propertiesVersion(any(Properties.class))).thenReturn("1.3");
    URL url = new URL("http://sonar.com/v13");
    SoftwareId softwareId = sonar.getSoftwareId(url, properties);
    assertFalse(softwareId.isCompatible());
    assertEquals("Sonar version 1.3 is not compatible with Visuwall. Please use a version >= 2.4",
            softwareId.getWarnings());
}