@Test
public void testSanitizeHostName() throws Exception {

    assertEquals("somehost.lan", IdGenerator.sanitizeHostName("somehost.lan"));
    // include a UTF-8 char in the text \u0E08 is a Thai elephant
    assertEquals("otherhost.lan", IdGenerator.sanitizeHostName("other\u0E08host.lan"));
}