}
public void testAutoUpdateDeleteSettings()
{
changeRepositoryAutoSetting("ref", true, false, false);
ObjectReferenceDescriptor ord = broker.getClassDescriptor(Repository.class)
.getObjectReferenceDescriptorByName("ref");
assertEquals(ObjectReferenceDescriptor.CASCADE_LINK, ord.getCascadingStore());
assertEquals(ObjectReferenceDescriptor.CASCADE_NONE, ord.getCascadingDelete());
assertEquals(false, ord.getCascadeStore());
assertEquals(false, ord.getCascadeDelete());
changeRepositoryAutoSetting("ref", true, true, true);
ord = broker.getClassDescriptor(Repository.class).getObjectReferenceDescriptorByName("ref");
assertEquals(ObjectReferenceDescriptor.CASCADE_OBJECT, ord.getCascadingStore());
assertEquals(ObjectReferenceDescriptor.CASCADE_OBJECT, ord.getCascadingDelete());
assertEquals(true, ord.getCascadeStore());
assertEquals(true, ord.getCascadeDelete());
}