packageExporter, packageExporterStrategy,
queueProvider, distributionHandler,
replicationEventFactory, resolverFactory, null);
ReplicationRequest request = new ReplicationRequest(System.nanoTime(),
ReplicationActionType.ADD, "/");
ReplicationPackage replicationPackage = mock(ReplicationPackage.class);
ResourceResolver resourceResolver = mock(ResourceResolver.class);
when(replicationPackage.getPaths()).thenReturn(new String[]{"/"});
when(packageExporter.exportPackages(any(ResourceResolver.class), any(ReplicationRequest.class)))
.thenReturn(Arrays.asList(replicationPackage));
when(queueProvider.getDefaultQueue(name)).thenReturn(
new SimpleReplicationQueue(name, "name"));
ReplicationResponse response = agent.execute(resourceResolver, request);