@Test
public void truncateShouldNotTruncateStringShorterThanMaximumLength() {

    String str = "This is the string with some text";
    assertThat(StringUtil.truncate(str, str.length() + 2), is(str));
    assertThat(StringUtil.truncate(str, str.length() + 2, null), is(str));
    assertThat(StringUtil.truncate(str, str.length() + 2, "really long suffix"), is(str));
}