@Test
public void testGetConstraint() {

    QueryObjectModel delegate = mock(QueryObjectModel.class);
    QueryObjectModelFacade<Session> facade = getFacade(delegate);
    final Constraint value = mock(Constraint.class);
    when(delegate.getConstraint()).thenReturn(value);
    assertSame("same value", value, facade.getConstraint());
}