public void testCustomerWithName()
{
int cnt = 0;
Query query = db.query(Customer.class);
query.constrain("companyName", OP.EQUALS, FUNCTION.TO_UPPER, "MI6");
ObjectSet<Customer> customers = query.execute();
for (Customer p : customers) {
if (!"GOLD4712".equals(p.getCustNr()) || !"MI6".equals(p.getCompanyName()))
fail("Invalid data in custNr || companyName");
cnt++;
}