* Test subclassing.
*/
public void testModelSubclass() throws Exception {
DefDescriptor<ModelDef> javaModelDefDesc = DefDescriptorImpl.getInstance(
"java://org.auraframework.impl.java.model.TestModelSubclass", ModelDef.class);
ModelDef def = javaModelDefDesc.getDef();
assertNotNull(def);
Model model = def.newInstance();
ValueDef vd = def.getMemberByName("nextThing");
PropertyReferenceImpl refNextThing = new PropertyReferenceImpl("nextThing", new Location("test", 0));
assertNotNull("Unable to find value def for 'nextThing'", vd);
assertEquals("nextThing", model.getValue(refNextThing));
vd = def.getMemberByName("firstThing");
PropertyReferenceImpl refFirstThing = new PropertyReferenceImpl("firstThing", new Location("test", 1));
assertNotNull("Unable to find value def for 'firstThing'", vd);
assertEquals("firstThingDefault", model.getValue(refFirstThing));
}