### Question:
DefaultExecutedScriptInfoSource implements ExecutedScriptInfoSource { public void updateExecutedScript(ExecutedScript executedScript) { checkExecutedScriptsTable(); getExecutedScripts().add(executedScript); String executedAt = timestampFormat.format(executedScript.getExecutedAt()); String updateSql = "update " + getQualifiedExecutedScriptsTableName() + " set " + checksumColumnName + " = '" + executedScript.getScript().getCheckSum() + "', " + fileLastModifiedAtColumnName + " = " + executedScript.getScript().getFileLastModifiedAt() + ", " + executedAtColumnName + " = '" + executedAt + "', " + succeededColumnName + " = " + (executedScript.isSuccessful() ? "1" : "0") + " where " + fileNameColumnName + " = '" + executedScript.getScript().getFileName() + "'"; sqlHandler.executeUpdateAndCommit(updateSql, defaultDatabase.getDataSource()); } DefaultExecutedScriptInfoSource(boolean autoCreateExecutedScriptsTable, String executedScriptsTableName, String fileNameColumnName,
                                           int fileNameColumnSize, String fileLastModifiedAtColumnName, String checksumColumnName, int checksumColumnSize,
                                           String executedAtColumnName, int executedAtColumnSize, String succeededColumnName, DateFormat timestampFormat,
                                           Database defaultSupport, SQLHandler sqlHandler, ScriptFactory scriptFactory); SortedSet<ExecutedScript> getExecutedScripts(); void registerExecutedScript(ExecutedScript executedScript); void updateExecutedScript(ExecutedScript executedScript); void deleteExecutedScript(ExecutedScript executedScript); void renameExecutedScript(ExecutedScript executedScript, Script renamedToScript); void deleteAllExecutedPreprocessingScripts(); void deleteAllExecutedPostprocessingScripts(); void clearAllExecutedScripts(); void markErrorScriptsAsSuccessful(); void removeErrorScripts(); void resetCachedState();  }### Answer:
@Test void updateExecutedScript() { executedScriptInfoSource.registerExecutedScript(executedScript1); assertFalse(executedScriptInfoSource.getExecutedScripts().first().isSuccessful()); executedScript1.setSuccessful(true); executedScriptInfoSource.updateExecutedScript(executedScript1); assertTrue(executedScriptInfoSource.getExecutedScripts().first().isSuccessful()); initExecutedScriptInfoSource(); assertTrue(executedScriptInfoSource.getExecutedScripts().first().isSuccessful()); }