@Test
public void testLiteral() throws RepositoryException {

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