HashUtils { public static String generateHash(String... inputs) { return generateHash(String.join("", inputs)); }  static String generateHash(String... inputs); static String generateHash(String input); static String generateHash(byte[] input);  }
@Test public void emptyString() { assertEquals("990e2617bc776c82671a73a8ca1890e2ff25dc48", HashUtils.generateHash("")); }
@Test public void concatenation() { assertEquals("e65287c61b6fa7e061f62f9fe1979a1dde62e447", HashUtils.generateHash("abc")); assertEquals("e65287c61b6fa7e061f62f9fe1979a1dde62e447", HashUtils.generateHash("a", "b", "c")); }
@Test public void multiByteCharacter() { assertEquals("f72730c87ac92d97c723605ac7bc33fe16e92255", HashUtils.generateHash("Ɵ")); }