@Test
public void testPrint_TruncateRows() {

    DataFrameTabularPrintWorker w = new DataFrameTabularPrintWorker(new StringBuilder(), 2, 10);
    assertEquals(System.lineSeparator() +
            "col1 column2" + System.lineSeparator() +
            "---- -------" + System.lineSeparator() +
            "one        1" + System.lineSeparator() +
            "..." + System.lineSeparator() +
            "four       4" + System.lineSeparator() +
            "4 rows x 2 columns", w.print(df).toString());
}