public void setup() {
   super.setup();
   // add a join between BabyMonitor and Baby what will complete a loop when combined with the
   // superclass' joins
   ClassDescriptor descriptor = getSession().getClassDescriptor(BabyMonitor.class);
   oldJoinFetch = ((OneToOneMapping) descriptor.getMappingForAttributeName("baby")).getJoinFetch();
   ((OneToOneMapping) descriptor.getMappingForAttributeName("baby")).useInnerJoinFetch();
   descriptor.reInitializeJoinedAttributes();
 }
 public void reset() {
   super.reset();
   ClassDescriptor descriptor = getSession().getClassDescriptor(BabyMonitor.class);
   ((OneToOneMapping) descriptor.getMappingForAttributeName("baby")).setJoinFetch(oldJoinFetch);
   descriptor.reInitializeJoinedAttributes();
 }