final ODocument r = (ODocument) db.query(new OSQLSynchQuery<Object>("SELECT FROM company")).get(0);
db.command(new OCommandSQL("INSERT INTO employee SET name = 'Philipp'")).execute();
db.command(new OCommandSQL("INSERT INTO employee SET name = 'Selma'")).execute();
db.command(new OCommandSQL("INSERT INTO employee SET name = 'Thierry'")).execute();
db.command(new OCommandSQL("INSERT INTO employee SET name = 'Linn'")).execute();
db.command(new OCommandSQL("UPDATE company ADD employees = (SELECT FROM employee)")).execute();
r.reload();
assertEquals(((Set) r.field("employees")).size(), 4);