### Question:
QueryObjectModelFacade extends QueryFacade<QueryObjectModel, S> implements QueryObjectModel { @Override public Constraint getConstraint() { return delegate.getConstraint(); } @SuppressWarnings("WeakerAccess")  QueryObjectModelFacade(final @NotNull QueryObjectModel delegate, final @NotNull SessionFacade<S> session); @Override Source getSource(); @Override Constraint getConstraint(); @Override Ordering[] getOrderings(); @Override Column[] getColumns();  }### Answer:
@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()); }