@Test
public void testAnd() throws RepositoryException {

    QueryObjectModelFactory delegate = mock(QueryObjectModelFactory.class);
    QueryObjectModelFactoryFacade<Session> facade = getFacade(delegate);
    final And value = mock(And.class);
    final Constraint arg1 = mock(Constraint.class);
    final Constraint arg2 = mock(Constraint.class);
    when(delegate.and(arg1, arg2)).thenReturn(value);
    assertSame("is same value", value, facade.and(arg1, arg2));
}