@Test
public void testPropertyExistence() throws RepositoryException {

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