@Test
public void truncateShouldNotTruncateStringWithLengthEqualToMaximumLength() {

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