@Test
public void toHashedHexStringMD5() throws Exception {

    // MD5 is default, this will make sure we don't break that
    Hasher hasher = new Hasher();
    String sample1 = hasher.toHashedHexString(MD5_SAMPLE1);
    Assert.assertEquals(MD5_SAMPLE1_HASH, sample1);
    String sample2 = hasher.toHashedHexString(MD5_SAMPLE2);
    Assert.assertEquals(MD5_SAMPLE2_HASH, sample2);
    String sample3 = hasher.toHashedHexString(MD5_SAMPLE3);
    Assert.assertEquals(MD5_SAMPLE3_HASH, sample3);
    Assert.assertEquals(32, sample3.length());
}