AdditionalSystemInterpreterInfo.setAdditionalSystemInfo(manager, info.getExecutableOrJar(), additionalInfo);
//Don't load it (otherwise it'll get the 'proper' info).
//AdditionalSystemInterpreterInfo.loadAdditionalSystemInfo(manager, info.getExecutableOrJar());
final ISystemModulesManager modulesManager = info.getModulesManager();
assertEquals(0, modulesManager.getSize(false));
assertEquals(0, additionalInfo.getAllTokens().size());
InterpreterInfoBuilder builder = new InterpreterInfoBuilder();
builder.setInfo(info, 0);
waitUntilCondition(new ICallback<String, Object>() {
public String call(Object arg) {
int size = modulesManager.getSize(false);
if (size == 3) {
return null;
}
return "Expected size = 3, found: " + size;
}