InsertExecutor extends AbstractDMLBaseExecutor<T, S> { @Override protected TableRecords beforeImage() throws SQLException { return TableRecords.empty(getTableMeta()); } InsertExecutor(StatementProxy statementProxy, StatementCallback statementCallback,
                          SQLRecognizer sqlRecognizer);   }
@Test public void testBeforeImage() throws SQLException { doReturn(tableMeta).when(insertExecutor).getTableMeta(); TableRecords tableRecords = insertExecutor.beforeImage(); Assertions.assertEquals(tableRecords.size(), 0); try { tableRecords.add(new Row()); } catch (Exception e) { Assertions.assertTrue(e instanceof UnsupportedOperationException); } try { tableRecords.getTableMeta(); } catch (Exception e) { Assertions.assertTrue(e instanceof UnsupportedOperationException); } }