DomainAttribute key = assertHasDomainAttribute(dobj, "generated primary key");
assertTrue(key.isPrimaryKey());
assertTrue(key.isIsGenerated());
// an instance is created
DomainInstance instance = di.getCurrentInstance();
assertGenerated(instance);
// the instance has both of these values
assertEquals(2, typeSelect(instance.getFeatureInstances(), DomainAttributeInstance.class).size());
assertHasDomainAttributeInstance(instance, "attribute");
assertHasDomainAttributeInstance(instance, "generated primary key");
// the form only has 'attribute'
assertEquals(1, form.getChildren().size());