expect(up.getDefaultValue()).andReturn(specPref.getValue()).anyTimes();
replay(up);
specPrefMap.put(up.getName(),up);
}
expect(spec.getUserPrefs()).andReturn(specPrefMap).anyTimes();
UserPrefs ctxPrefs = new UserPrefs(inPrefs);
expect(context.getUserPrefs()).andReturn(ctxPrefs).anyTimes();
expect(context.getParameter(Param.REFRESH.getKey())).andReturn(null).anyTimes();
expect(currentView.needsUserPrefSubstitution()).andReturn(needsPrefSubst).anyTimes();
expect(secondView.needsUserPrefSubstitution()).andReturn(!needsPrefSubst).anyTimes();