@Test
public void testOnInsertRow() {

    final int index = 123;
    final List<String> rowData = Collections.singletonList("abc");
    final InsertRowEvent insertRowEvent = mock(InsertRowEvent.class);
    when(insertRowEvent.getIndex()).thenReturn(index);
    when(cellValueFactoryMock.makeRowData()).thenReturn(rowData);
    dataTableWidget.onInsertRow(insertRowEvent);
    verify(modelMock).addRow(eq(index),
                             eq(rowData.toArray(new String[1])));
}