checkObject(pm, o1, true, true, true, true, false, false);
}
public void testFetchGroupConfiguration() {
OpenJPAEntityManager pm = getPM();
FetchPlan fetch = pm.getFetchPlan();
checkGroups(pm, new String[0]);
fetch.addFetchGroup("foo");
checkGroups(pm, new String[]{ "foo" });
fetch.addFetchGroup("bar");
fetch.addFetchGroup("baz");
checkGroups(pm, new String[]{ "foo", "bar", "baz" });
fetch.addFetchGroup("a");
fetch.addFetchGroup("b");
fetch.addFetchGroup("c");
fetch.addFetchGroup("d");
checkGroups(pm, new String[]
{ "foo", "bar", "baz", "a", "b", "c", "d" });
fetch.removeFetchGroup("bar");
checkGroups(pm, new String[]{ "foo", "baz", "a", "b", "c", "d" });
fetch.removeFetchGroup("baz");
fetch.removeFetchGroup("c");
checkGroups(pm, new String[]{ "foo", "a", "b", "d" });
fetch.clearFetchGroups().addFetchGroup(FetchPlan.GROUP_DEFAULT);
checkGroups(pm, new String[0]);
}