@Test
public void testWrap_StringInt() {

    assertEquals(null, wrap(null, 20));
    assertEquals(null, wrap(null, -1));
    assertEquals("", wrap("", 20));
    assertEquals("", wrap("", -1));
    // normal
    String systemNewLine = System.getProperty("line.separator");
    String input = "Here is one line of text that is going to be wrapped after 20 columns.";
    String expected = "Here is one line of" + systemNewLine + "text that is going"
            + systemNewLine + "to be wrapped after" + systemNewLine + "20 columns.";
    assertEquals(expected, wrap(input, 20));
    // long word at end
    input = "Click here to jump to the jakarta website - http://jakarta.apache.org";
    expected = "Click here to jump" + systemNewLine + "to the jakarta" + systemNewLine
            + "website -" + systemNewLine + "http://jakarta.apache.org";
    assertEquals(expected, wrap(input, 20));
    // long word in middle
    input = "Click here, http://jakarta.apache.org, to jump to the jakarta website";
    expected = "Click here," + systemNewLine + "http://jakarta.apache.org," + systemNewLine
            + "to jump to the" + systemNewLine + "jakarta website";
    assertEquals(expected, wrap(input, 20));
}