public static String join(final String base, final String... paths) {
        return Arrays.stream(paths).reduce(base, URLs::doJoin);
    }
@Test
    public void should_join_path() {
        assertThat(URLs.join("base", "path"), is("base/path"));
        assertThat(URLs.join("base/", "path"), is("base/path"));
        assertThat(URLs.join("base", ""), is("base"));
        assertThat(URLs.join("base", "/path"), is("base/path"));
        assertThat(URLs.join("base/", "/path"), is("base/path"));
        assertThat(URLs.join("base", "path", "sub"), is("base/path/sub"));
    }