ReplicationPackageExporter packageExporter = mock(ReplicationPackageExporter.class);
ReplicationRequestAuthorizationStrategy packageExporterStrategy = mock(ReplicationRequestAuthorizationStrategy.class);
ReplicationQueueProvider queueProvider = mock(ReplicationQueueProvider.class);
ReplicationQueueDistributionStrategy distributionHandler = mock(ReplicationQueueDistributionStrategy.class);
when(distributionHandler.add(any(String.class), any(ReplicationPackage.class), any(ReplicationQueueProvider.class))).thenReturn(false);
ReplicationEventFactory replicationEventFactory = mock(ReplicationEventFactory.class);
ResourceResolverFactory resolverFactory = mock(ResourceResolverFactory.class);
SimpleReplicationAgent agent = new SimpleReplicationAgent(name,
false, "serviceName", packageImporter,
packageExporter, packageExporterStrategy,