### Question:
StringUtil { private static String splitLine(String str, final int col) { if (str.length() < col) { return str; } for (int i = col - 1; i > 0; i--) { if (str.charAt(i) == ' ') { return str.substring(0, i) + "\n" + splitLine(str.substring(i + 1), col); } } for (int i = col; i < str.length(); i++) { if (str.charAt(i) == ' ') { return str.substring(0, i) + "\n" + splitLine(str.substring(i + 1), col); } } return str; }  static String unquoteCString(String str); static String unquoteCString(String str, char delimiter); static String makeProper(String str); static String enquoteCString(String value); static String enquoteCString(String value, char delimiter); static void throwIfSurrogatePair(int codePoint); static int lastIndexOfAny(String str, String search, int offset); static int indexOfAny(String str, String search, int offset); static String unquoteKString(String str); static String enquoteKString(String value); static String getCategoryCode(byte cat); static String getDirectionalityCode(byte cat); static String escapeSort(NonTerminal nonTerminal); static String escapeSort(Sort sort); static String escapeSort(String str); static String unEscapeSortName(String str); static String getSortNameFromCons(String str); static String escapeMaude(String tag); static String unescapeMaude(String str); static String latexify(String name); static String emptyIfNull(String string); static int getStartLineFromLocation(String location); static int getStartColFromLocation(String location); static String splitLines(String str); static String splitLines(String str, final int col); static String[] finesseJCommanderUsage(String string, JCommander jc); static String escapeShell(String arg, OS os); static String escapeShell(String[] args, OS os);  }### Answer:
@Test public void testSplitLine() { String longLine = "http: Assert.assertEquals( "http: StringUtil.splitLines(longLine, 10)); Assert.assertEquals( "http: StringUtil.splitLines(longLine, 20)); Assert.assertEquals( "http: StringUtil.splitLines(longLine, 0)); Assert.assertEquals( "http: StringUtil.splitLines(longLine, longLine.length())); Assert.assertEquals(longLine, StringUtil.splitLines(longLine, longLine.length() + 1)); String multiLine = "http: Assert.assertEquals( "http: StringUtil.splitLines(multiLine, 30)); Assert.assertEquals( "http: StringUtil.splitLines(multiLine, 13)); Assert.assertEquals( "http: StringUtil.splitLines(multiLine, 10)); }