}
}
private void validateProperty(JavascriptModelDef def, String name, Object expectedValue) throws Exception {
// Validate the default from the def
JavascriptValueDef valueDef = (JavascriptValueDef) def.getMemberByName(name);
Object defaultValue = valueDef.getDefaultValue();
assertEquals(expectedValue, defaultValue);
// Also validate that the default appropriately shows up on an instance
// of this model.
Model model = def.newInstance();