### Question:
DefaultExecutedScriptInfoSource implements ExecutedScriptInfoSource { public void renameExecutedScript(ExecutedScript executedScript, Script renamedToScript) { checkExecutedScriptsTable(); String renameSql = "update " + getQualifiedExecutedScriptsTableName() + " set " + fileNameColumnName + " = '" + renamedToScript.getFileName() + "', " + checksumColumnName + " = '" + renamedToScript.getCheckSum() + "', " + fileLastModifiedAtColumnName + " = " + renamedToScript.getFileLastModifiedAt() + " where " + fileNameColumnName + " = '" + executedScript.getScript().getFileName() + "'"; sqlHandler.executeUpdateAndCommit(renameSql, defaultDatabase.getDataSource()); executedScript.renameTo(renamedToScript); } 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 renameExecutedScript() { executedScriptInfoSource.registerExecutedScript(executedScript1); Script renamedToScript = createScript("1_script1_renamed.sql"); executedScriptInfoSource.renameExecutedScript(executedScript1, renamedToScript); assertEquals(renamedToScript, executedScriptInfoSource.getExecutedScripts().first().getScript()); initExecutedScriptInfoSource(); assertEquals(renamedToScript, executedScriptInfoSource.getExecutedScripts().first().getScript()); }