### Question:
RestUriUtils { public static boolean isV1Uri(URI uri) { return uri != null && (uri.getPath().endsWith("v1") || uri.getPath().endsWith("v1/")); }  static boolean isV1Uri(URI uri); static boolean hasToken(URI uri); static URI removeToken(URI uri); static String generateSecret(String secret); static List<String> splitIntoMultipleUris(String combinedUris);  }### Answer:
@Test public void testIsV1Uri_withV1Uri() { assertThat(RestUriUtils.isV1Uri(URI.create("http: }
@Test public void testIsV1Uri_withV1UriTrailingSlash() { assertThat(RestUriUtils.isV1Uri(URI.create("http: }
@Test public void testIsV1Uri_withV1InPathButNotEnding() { assertThat(RestUriUtils.isV1Uri(URI.create("http: }
@Test public void testIsV1Uri_withV1NotInPath() { assertThat(RestUriUtils.isV1Uri(URI.create("http: }
@Test public void testIsV1Uri_withLegacyUri() { assertThat(RestUriUtils.isV1Uri(URI.create("http: }
@Test public void testIsV1Uri_withNull() { assertThat(RestUriUtils.isV1Uri(null), is(false)); }