company.setEmployees((int) (100000 + i));
company.getAddresses().add(new Address("Headquarter", redmond, "WA 98073-9717"));
database.save(company);
}
assertEquals(database.countClusterElements("Company") - startRecordNumber, TOT_RECORDS);
final List<Account> result = database.query(new OSQLSynchQuery<Account>(
"select from Company where name.length() > 0"));
assertTrue(result.size() > 0);
assertEquals(result.size(), TOT_RECORDS);