@Test
public void wrapping_Lines() throws TaskIOException {

    PDDocument doc = new PDDocument();
    List<String> lines = FontUtils.wrapLines(
            "This is a long line that cannot fit on a single line and could be wrapped", HELVETICA, 10, 191, doc);
    assertThat(lines,
            is(Arrays.asList("This is a long line that cannot fit on a", "single line and could be wrapped")));
}