@Test
public void shortenFilenameCharLength() {

    String shorter = IOUtils.shortenFilenameCharLength(largeFilename, 255);
    assertThat(shorter, endsWith("aวaวa.pdf"));
    assertThat(shorter, startsWith("aวaว"));
    assertThat(shorter.length(), is(255));
}