"endpoints[2]=http://localhost:103/libs/sling/replication/services/importers/default",
"endpoints.strategy=All"});
ReplicationComponentFactory replicationComponentFactory = mock(ReplicationComponentFactory.class);
ReplicationAgent replicationAgent = mock(ReplicationAgent.class);
CoordinatingReplicationAgentFactory coordinatingReplicationAgentFactory = new CoordinatingReplicationAgentFactory();
when(replicationComponentFactory.createComponent(ReplicationAgent.class, config, coordinatingReplicationAgentFactory)).
thenReturn(replicationAgent);
Field componentFactory = coordinatingReplicationAgentFactory.getClass().getDeclaredField("componentFactory");
componentFactory.setAccessible(true);
componentFactory.set(coordinatingReplicationAgentFactory, replicationComponentFactory);