final JClassType barType = new JClassType(nullSourceInfo, "Bar", false, false);
final JsName barConstructorName = new JsName(null, "Bar", "Bar");
final JConstructor barConstructor = new JConstructor(nullSourceInfo, barType);
Map<String, JsFunction> functionsByName = new HashMap<String, JsFunction>();
functionsByName.put("JavaClassHierarchySetupUtil.defineClass",
new JsFunction(nullSourceInfo, new JsRootScope(), DEFINE_CLASS_FUNCTION_NAME));
final JsExprStmt defineClassStatement = createDefineClassStatement(barConstructorName);
JsProgram jsProgram = new JsProgram();
jsProgram.setIndexedFunctions(functionsByName);