when(result.get((int)scriptNo)).thenReturn(script);
}
when(result.iterator()).thenReturn(scripts.iterator());
when(result.size()).thenReturn(scripts.size());
when(result.nextScriptName(anyString())).thenThrow(new RuntimeException("TBI"));
when(result.maxScriptVersion()).thenReturn(scriptNo);
return result;
}
private void validateScripts(String expectedMsg, ScriptList list){