// fetch group 'g2'; make sure it is loaded
int field = sm.getMetaData().getField("g").getIndex();
try {
assertTrue(sm.getLoaded().get(field));
assertEquals(oid1,
((FetchGroupTestObject) sm.fetchObjectField(field)).getId());
} catch (junit.framework.AssertionFailedError afe) {
bug(623, afe, "One to one mappings do not work with custom "
+ "fetch groups");
}
}