@Test
public void testScrubServerURIs() {

    final Set<String> set = ImmutableSet.of(
            "http://user:pass@localhost:9200",
            "http://localhost:9300/path?query#fragment");
    final Set<String> scrubbedURIs = client.scrubServerURIs(set);
    assertEquals(2, scrubbedURIs.size());
    assertTrue(scrubbedURIs.contains("http://localhost:9200"));
    assertTrue(scrubbedURIs.contains("http://localhost:9300/path?query#fragment"));
}