@Test
public void testConstructQuerySingleRef() throws Exception {

    Query actual = QueryGenUtil.constructQuery(os.getModel(), "Employee department Department");
    Query q = new Query();
    q.setDistinct(false);
    QueryClass qcEmpl = new QueryClass(Employee.class);
    q.addToSelect(qcEmpl);
    q.addFrom(qcEmpl);
    QueryClass qcDept = new QueryClass(Department.class);
    q.addToSelect(qcDept);
    q.addFrom(qcDept);
    QueryObjectReference ref = new QueryObjectReference(qcEmpl, "department");
    ContainsConstraint cc = new ContainsConstraint(ref, ConstraintOp.CONTAINS, qcDept);
    q.setConstraint(cc);
    QueryAssert.assertEquals(q, actual);
}