@Test
public void cleanDoubleSlash() {

    Assert.assertEquals("segment1/segment2", UriBuilder.cleanUri("segment1/segment2"));
    Assert.assertEquals("segment1/segment2", UriBuilder.cleanUri("segment1//segment2"));
    Assert.assertEquals("http://segment1/segment2", UriBuilder.cleanUri("http://segment1//segment2"));
    Assert.assertEquals("https://segment1/segment2", UriBuilder.cleanUri("https://segment1//segment2"));
    Assert.assertEquals("https://segment1/segment2/", UriBuilder.cleanUri("https:///segment1//segment2/"));
}