If invocation to org.hibernate.search.engine.ServiceManager#requestService resolves to a service in the providedProviders collection, the service provider itself is cast to the service it should provide.
Trivial to fix, a test should be added.
This is a critical/blocker bug to make progress with the Infinispan Query integration, but causes no harm to any standard usage.