### Question:
StringUtilities { public static String cutOffLastCharacters(String string, int characterCount) { return string.substring(0, string.length() - characterCount); }  static String getFileNameRepresentation(String string); static List<Integer> allIndicesOf(String string, char character); static int[] findBreakPoints(String textString, int lines); static String insertLineBreakEveryXCharacters(String textString, String lineBreak, int numberOfCharacters); static String joinStringsWithDelimiter(String[] stringsToJoin, String delimiter); static String joinStringsWithDelimiter(String[] stringsToJoin, String delimiter, String nullString); static char lastCharacter(String string); static String cutOffLastCharacters(String string, int characterCount); static boolean isNullOrTrimmedEmpty(String text); static final String EMPTY_STRING; }### Answer:
@Test public void testCutOffLastCharacters() throws Exception { Assert.assertEquals("S", StringUtilities.cutOffLastCharacters("Su", 1)); }