// Note that in this case, it is ok to pass Set<relays> as all the relays serve the same source "source1"
ConnectionStateFactory connStateFactory = new ConnectionStateFactory(sources);
DatabusSourcesConnection sourcesConn = new DatabusSourcesConnection(
srcConnConf, sourcesSubList, relays, null, null, null, relayBuffer, bootstrapBuffer,
Executors.newCachedThreadPool(), null, null, null, null, null, null, null, mockConnFactory, null,
null, null, null, new DbusEventV1Factory(), connStateFactory);
final RelayPullThread relayPuller =
new RelayPullThread("RelayPuller", sourcesConn, relayBuffer, connStateFactory, relays,
new ArrayList<DbusKeyCompositeFilterConfig>(),
!clientConf.getRuntime().getBootstrap().isEnabled(),
clientConf.isReadLatestScnOnErrorEnabled(),
clientConf.getPullerBufferUtilizationPct(),
Integer.MAX_VALUE,
ManagementFactory.getPlatformMBeanServer(),
new DbusEventV1Factory(),
null);
//relayPuller.getLog().setLevel(Level.INFO);
RemoteExceptionHandler mockRemoteExceptionHandler =
new MockRemoteExceptionHandler(sourcesConn, relayBuffer, relayPuller);