when(config.getLatestDBVersion()).thenReturn(currentVersion + listOfVersionScripts.length - 1);
long idx = 0;
for(ScriptList versionScripts: listOfVersionScripts){
File scriptsDir = mock(File.class);
File[] listFiles = new File[]{mock(File.class)};
when(scriptsDir.listFiles()).thenReturn(listFiles);
final long dbVersion = currentVersion + idx;
when(config.getScriptDirectory(dbVersion)).thenReturn(scriptsDir);
when(assembler.newScriptList(listFiles, dbVersion)).thenReturn(versionScripts);
when(versionScripts.DBVersion()).thenReturn(dbVersion);
idx++;