@Test
void testHashWithSalt() throws NoSuchAlgorithmException {

    final Hash hash = new Hash();
    String result = hash.hash("test", "SHA-512", "salt");
    assertThat(result).isEqualTo("7e007fe5f99ee5851dd519bf6163a0d2dda54d45e6fe0127824f5b45a5ec59183a08aaa270979deb2f048815d05066c306e3694473d84d6aca0825c3dccd559");
    result = hash.hash("test", "SHA-256", "salt");
    assertThat(result).isEqualTo("1bc1a361f17092bc7af4b2f82bf9194ea9ee2ca49eb2e53e39f555bc1eeaed74");
    result = hash.hash("test", "SHA-1", "salt");
    assertThat(result).isEqualTo("9875cadfaf93c78efff30378dd054cf9a5f4a723");
    result = hash.hash("test", "MD5", "salt");
    assertThat(result).isEqualTo("d653ea7ea31e77b41041e7e3d32e3e4a");
}