@Test
public void testComparison() throws RepositoryException {

    QueryObjectModelFactory delegate = mock(QueryObjectModelFactory.class);
    QueryObjectModelFactoryFacade<Session> facade = getFacade(delegate);
    final Comparison value = mock(Comparison.class);
    final DynamicOperand arg1 = mock(DynamicOperand.class);
    final String arg2 = "arg2";
    final StaticOperand arg3 = mock(StaticOperand.class);
    when(delegate.comparison(arg1, arg2, arg3)).thenReturn(value);
    assertSame("is same value", value, facade.comparison(arg1, arg2, arg3));
}