q = pm.newQuery(Office.class,"this.description.matches(\".*illag.\")");
<BUG>c = (Collection) q.execute();
Assert.assertEquals(1,c.size());</BUG>
Assert.assertEquals(ids[1],JDOHelper.getObjectId(c.iterator().next()));
q = pm.newQuery(Office.class,"this.description.matches(\"(?i).*ILLAGE\")");
<BUG>c = (Collection) q.execute();
Assert.assertEquals(1,c.size());</BUG>
Assert.assertEquals(ids[1],JDOHelper.getObjectId(c.iterator().next()));
q = pm.newQuery(Office.class,"this.description.toUpperCase().matches(\".*ILLAGE\")");
<BUG>c = (Collection) q.execute();
Assert.assertEquals(1,c.size());</BUG>
Assert.assertEquals(ids[1],JDOHelper.getObjectId(c.iterator().next()));

q = pm.newQuery(Office.class,"this.description.matches(\".*illag.\")");
c = q.executeList();
Assert.assertEquals(1,c.size());
Assert.assertEquals(ids[1],JDOHelper.getObjectId(c.iterator().next()));
q = pm.newQuery(Office.class,"this.description.matches(\"(?i).*ILLAGE\")");
c = q.executeList();
Assert.assertEquals(1,c.size());
Assert.assertEquals(ids[1],JDOHelper.getObjectId(c.iterator().next()));
q = pm.newQuery(Office.class,"this.description.toUpperCase().matches(\".*ILLAGE\")");
c = q.executeList();
Assert.assertEquals(1,c.size());
Assert.assertEquals(ids[1],JDOHelper.getObjectId(c.iterator().next()));
