@Test
public void testToString_TruncateRows() {

    DataFrameInlinePrintWorker w = new DataFrameInlinePrintWorker(new StringBuilder(), 2, 10);
    assertEquals("{col1:one,column2:1},...,{col1:four,column2:4}", w.print(df).toString());
}