@Test
public void testNormalizeIdGetRidOfSpaces() {

  String id = StringUtils.normalizeId("  ab   ab  ");
  Assert.assertTrue("incorrect normalization, should be 'ab-ab', but was '" + id + "'",
             "ab-ab".equals(id));
}