@Test
public void testCreatePermlinkString() {

    // Check trimming, lowercasing, space replacement
    assertEquals("test-title-1", CondenserUtils.createPermlinkString(" TEST TITLE 1 "));
    // Only numbers, letters and hyphens allowed
    assertEquals("test-title-2", CondenserUtils.createPermlinkString("TEST TITLE 2!"));
    // Contiguous hyphens should be replaced with a single hyphen
    assertEquals("test-title-3", CondenserUtils.createPermlinkString("TEST TITLE  3"));
}