@Test
public void testSuffixes() {

    String word = "Grobid";
    assertEquals("", TextUtilities.suffix(word, 0));
    assertEquals("d", TextUtilities.suffix(word, 1));
    assertEquals("id", TextUtilities.suffix(word, 2));
    assertEquals("bid", TextUtilities.suffix(word, 3));
    assertEquals("obid", TextUtilities.suffix(word, 4));
    assertEquals("Grobid", TextUtilities.suffix(word, 6));
    assertEquals("Grobid", TextUtilities.suffix(word, 100));
    assertEquals(null, TextUtilities.suffix(null, 0));
    assertEquals(null, TextUtilities.suffix(null, 1));
}