@Test
public void testBindVariable() throws RepositoryException {

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