INT-3420 Fix Broken Test

Test did not set (required) BeanFactory.
INT-3445: Fix `PublisherRegistrar` NPE

JIRA: https://jira.spring.io/browse/INT-3445