DomainIterator iterator = assertHasDomainIterator(page, "current doctoral");
DomainInstance instance = iterator.getCurrentInstance();
assertGenerated(instance);
// direct field
DomainAttributeInstance thesis = assertHasDomainAttributeInstance(instance, "thesis title");
assertGenerated(thesis);
// inherited field
DomainAttributeInstance degree = assertHasDomainAttributeInstance(instance, "degree");
assertGenerated(degree);
DomainAttributeInstance enrolled = assertHasDomainAttributeInstance(instance, "enrolled");
assertGenerated(enrolled);
DomainAttributeInstance title = assertHasDomainAttributeInstance(instance, "title");
assertGenerated(title);
DomainAttributeInstance qualification = assertHasDomainAttributeInstance(instance, "qualification");
assertGenerated(qualification);
DomainAttributeInstance name = assertHasDomainAttributeInstance(instance, "name");
assertGenerated(name);
// primary key
DomainAttributeInstance key = assertHasDomainAttributeInstance(instance, "generated primary key");
assertGenerated(key);
// foreign keys
DomainAttributeInstance Person_id = assertHasDomainAttributeInstance(instance, "Person.id");
assertGenerated(Person_id);
assertExtends(Person_id, "Doctoral");
DomainAttributeInstance qid = assertHasDomainAttributeInstance(instance, "Qualified.generated primary key");
assertGenerated(qid);
assertExtends(qid, "Doctoral");
DomainAttributeInstance pid = assertHasDomainAttributeInstance(instance, "Postgraduate.generated primary key");
assertGenerated(pid);
assertExtends(pid, "Doctoral");
DomainAttributeInstance sid = assertHasDomainAttributeInstance(instance, "Student.generated primary key");
assertGenerated(sid);
assertExtends(sid, "Doctoral");
DomainAttributeInstance tid = assertHasDomainAttributeInstance(instance, "Teacher.generated primary key");
assertGenerated(tid);
assertExtends(tid, "Doctoral");
}