@Test
public void testLength() throws RepositoryException {

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