}
public void testFetchGroupsNoConfiguration() {
OpenJPAEntityManager pm = getPM();
FetchGroupTestObject o1 = getO1(pm);
FetchGroupTestObject o2 = getO2(pm);
// only field a should be loaded.
checkObject(pm, o1, true, false, false, false, false, false);
// upon loading field b, fields c and d should also be loaded,
// but e and f should not.
o1.getB();
checkObject(pm, o1, true, true, true, true, false, false);
// loading field h should not cause any of the others to be loaded.
assertEquals(o1, o2.getH());
checkObject(pm, o2, true, false, false, false, false, false);
// loading field g should cause e and f to be loaded.
assertEquals(o1, o2.getG());
checkObject(pm, o2, true, false, false, false, true, true);
}