DirectToDbApplier implements ChangeScriptApplier { protected void insertToSchemaVersionTable(ChangeScript changeScript) { schemaVersionManager.recordScriptApplied(changeScript); } DirectToDbApplier(QueryExecuter queryExecuter, DatabaseSchemaVersionManager schemaVersionManager, QueryStatementSplitter splitter); void apply(List<ChangeScript> changeScript); void begin();  }
@Test public void shouldInsertToSchemaVersionTable() throws Exception { ChangeScript changeScript = new ChangeScript(1, "script.sql"); applier.insertToSchemaVersionTable(changeScript); verify(schemaVersionManager).recordScriptApplied(changeScript); }