@Test public void should_return_true_if_url_with_properties_exists() throws Exception { URL url = new URL("http: when(client.exist(anyString(), any(Class.class))).thenReturn(true); assertTrue(sonarDetector.isSonarPropertiesPage(url)); }
public boolean isSonarPropertiesPage(URL url) { return client.exist(buildPropertiesUrl(url), Properties.class); }
SonarDetector { public boolean isSonarPropertiesPage(URL url) { return client.exist(buildPropertiesUrl(url), Properties.class); } }
SonarDetector { public boolean isSonarPropertiesPage(URL url) { return client.exist(buildPropertiesUrl(url), Properties.class); }  }
SonarDetector { public boolean isSonarPropertiesPage(URL url) { return client.exist(buildPropertiesUrl(url), Properties.class); }  boolean isSonarPropertiesPage(URL url); boolean isSonarWelcomePage(URL url); String buildPropertiesUrl(URL url); }
SonarDetector { public boolean isSonarPropertiesPage(URL url) { return client.exist(buildPropertiesUrl(url), Properties.class); }  boolean isSonarPropertiesPage(URL url); boolean isSonarWelcomePage(URL url); String buildPropertiesUrl(URL url);  }