@Test
public void should_return_true_if_url_with_page_contains_Sonar() throws Exception {

    URL url = new URL("http://localhost:9000");
    when(client.contains(any(URL.class), eq("Sonar"))).thenReturn(true);
    assertTrue(sonarDetector.isSonarWelcomePage(url));
}