@Test
public void testCut() {

    assertThat(Functions.cut(null, 1), is(""));
    assertThat(Functions.cut("", 1), is(""));
    assertThat(Functions.cut("abcdef", 3), is("abc"));
    assertThat(Functions.cut("abcdef", 7), is("abcdef"));
    assertThat(Functions.cut("abcdef", 0), is(""));
    assertThat(Functions.cut("abcdef", -1), is(""));
}