@Test
public void testSameNodeJoinCondition() throws RepositoryException {

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