@Test
public void testShorten() {

    assertNull(Tools.shorten(null, 5));
    assertEquals("Monkey", Tools.shorten("Monkey", 12));
    assertEquals("Monkey", Tools.shorten("Monkey", 6));
    assertEquals("Monke", Tools.shorten("Monkey", 5));
    assertEquals("M", Tools.shorten("Monkey", 1));
    assertEquals("", Tools.shorten("Monkey", 0));
    assertEquals("", Tools.shorten("Monkey", -5));
}