@Test
public void or() {

    Disjunction or = Restrictions.or(left, right);
    List<Criterion> criteria = or.getCriteria();
    assertEquals(Operator.OR, or.getOperator());
    assertEquals(2, criteria.size());
    assertEquals(left, criteria.get(0));
    assertEquals(right, criteria.get(1));
}