"select anArticle from " + Article.class.getName() + " where productGroup.groupName like \"Fruit*\"");
List results = (List) query.execute();
// crosscheck
query = odmg.newOQLQuery();
query.create("select aPG from " + ProductGroup.class.getName() + " where groupName like \"Fruit*\"");
List check = (List) query.execute();
if (check.size() < 1)
fail("Could not found ProductGroup's for: " +
"select aPG from " + ProductGroup.class.getName() + " where groupName like \"Fruit*\"");
ProductGroup pg = (ProductGroup) check.get(0);