A more sensible null check
Remove usages of deprecated SearchManager.getQueryFactory()
ISPN-4464 Unify test suite for remote and embedded DSL based query tests

Remote and embedded DSL query tests share the domain model. The model defines interfaces
that are implemented using Hibernate Search anontated entities for embedded mode and
Protobuf entities for remote mode. The test driver code is shared between embedded
and remote tests.