@Test
public void testNot() throws RepositoryException {

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