@Test
public void shouldUpdateChangelogTable() throws Exception {

    Date now = new Date();
    when(queryExecuter.getDatabaseUsername()).thenReturn("DBUSER");
    when(timeProvider.now()).thenReturn(now);
    schemaVersionManager.recordScriptApplied(script);
    String expected =
            "INSERT INTO changelog (change_number, complete_dt, applied_by, description) " +
                    "VALUES (?, ?, ?, ?)";
    verify(queryExecuter).execute(expected, script.getId(),
            new Timestamp(now.getTime()), "DBUSER", script.getDescription());
}