Dictionary properties = mock(Dictionary.class);
when(properties.get("attempts.threshold")).thenReturn(new String[]{"1"});
when(properties.get("stuck.handling")).thenReturn(new String[]{"ERROR"});
when(context.getProperties()).thenReturn(properties);
errorAwareDistributionStrategy.activate(context);
ReplicationPackage replicationPackage = mock(ReplicationPackage.class);
ReplicationQueueProvider queueProvider = mock(ReplicationQueueProvider.class);
ReplicationQueue queue = mock(ReplicationQueue.class);
ReplicationQueueItem queueItem = mock(ReplicationQueueItem.class);
when(queueProvider.getDefaultQueue("agentName")).thenReturn(queue);