### Question:
RestUriUtils { public static String generateSecret(String secret) { checkArgument(!Strings.isNullOrEmpty(secret)); return Hashing.sha1().hashBytes(secret.getBytes(Charsets.UTF_8)).toString(); }  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(expected = IllegalArgumentException.class) public void testGenerateSecret_withNull() { RestUriUtils.generateSecret(null); }
@Test(expected = IllegalArgumentException.class) public void testGenerateSecret_withEmpty() { RestUriUtils.generateSecret(""); }
@Test public void testGenerateSecret_withString() { assertThat(RestUriUtils.generateSecret("testingtesting"), is("b0212be2cc6081fba3e0b6f3dc6e0109d6f7b4cb")); }