Source:
public void shouldFireEventsForReplicationOfMultipleRefsToMultipleNodes ( ) throws java.net.URISyntaxException { org.easymock.EasyMock.resetToDefault ( pushResultProcessingMock ) ; org.eclipse.jgit.transport.URIish uri1 = new org.eclipse.jgit.transport.URIish ( "git://host1/someRepo.git" ) ; org.eclipse.jgit.transport.URIish uri2 = new org.eclipse.jgit.transport.URIish ( "git://host2/someRepo.git" ) ; org.eclipse.jgit.transport.URIish uri3 = new org.eclipse.jgit.transport.URIish ( "git://host3/someRepo.git" ) ; pushResultProcessingMock.onRefReplicatedToOneNode ( "someProject" , "ref1" , uri1 , RefPushResult.SUCCEEDED ) ; pushResultProcessingMock.onRefReplicatedToOneNode ( "someProject" , "ref1" , uri2 , RefPushResult.SUCCEEDED ) ; pushResultProcessingMock.onRefReplicatedToOneNode ( "someProject" , "ref1" , uri3 , RefPushResult.SUCCEEDED ) ; pushResultProcessingMock.onRefReplicatedToOneNode ( "someProject" , "ref2" , uri1 , RefPushResult.SUCCEEDED ) ; pushResultProcessingMock.onRefReplicatedToOneNode ( "someProject" , "ref2" , uri2 , RefPushResult.SUCCEEDED ) ; pushResultProcessingMock.onRefReplicatedToAllNodes ( "someProject" , "ref1" , 3 ) ; pushResultProcessingMock.onRefReplicatedToAllNodes ( "someProject" , "ref2" , 2 ) ; pushResultProcessingMock.onAllRefsReplicatedToAllNodes ( 5 ) ; org.easymock.EasyMock.replay ( pushResultProcessingMock ) ; replicationState.increasePushTaskCount ( "someProject" , "ref1" ) ; replicationState.increasePushTaskCount ( "someProject" , "ref1" ) ; replicationState.increasePushTaskCount ( "someProject" , "ref1" ) ; replicationState.increasePushTaskCount ( "someProject" , "ref2" ) ; replicationState.increasePushTaskCount ( "someProject" , "ref2" ) ; replicationState.markAllPushTasksScheduled ( ) ; replicationState.notifyRefReplicated ( "someProject" , "ref1" , uri1 , RefPushResult.SUCCEEDED ) ; replicationState.notifyRefReplicated ( "someProject" , "ref1" , uri2 , RefPushResult.SUCCEEDED ) ; replicationState.notifyRefReplicated ( "someProject" , "ref1" , uri3 , RefPushResult.SUCCEEDED ) ; replicationState.notifyRefReplicated ( "someProject" , "ref2" , uri1 , RefPushResult.SUCCEEDED ) ; replicationState.notifyRefReplicated ( "someProject" , "ref2" , uri2 , RefPushResult.SUCCEEDED ) ; org.easymock.EasyMock.verify ( pushResultProcessingMock ) ; }

Target:
public void shouldFireEventsForReplicationOfMultipleRefsToMultipleNodes ( ) throws java.net.URISyntaxException { org.easymock.EasyMock.resetToDefault ( pushResultProcessingMock ) ; org.eclipse.jgit.transport.URIish uri1 = new org.eclipse.jgit.transport.URIish ( "git://host1/someRepo.git" ) ; org.eclipse.jgit.transport.URIish uri2 = new org.eclipse.jgit.transport.URIish ( "git://host2/someRepo.git" ) ; org.eclipse.jgit.transport.URIish uri3 = new org.eclipse.jgit.transport.URIish ( "git://host3/someRepo.git" ) ; pushResultProcessingMock.onRefReplicatedToOneNode ( "someProject" , "ref1" , uri1 , RefPushResult.SUCCEEDED , RemoteRefUpdate.Status.OK ) ; pushResultProcessingMock.onRefReplicatedToOneNode ( "someProject" , "ref1" , uri2 , RefPushResult.SUCCEEDED , RemoteRefUpdate.Status.OK ) ; pushResultProcessingMock.onRefReplicatedToOneNode ( "someProject" , "ref1" , uri3 , RefPushResult.SUCCEEDED , RemoteRefUpdate.Status.OK ) ; pushResultProcessingMock.onRefReplicatedToOneNode ( "someProject" , "ref2" , uri1 , RefPushResult.SUCCEEDED , RemoteRefUpdate.Status.OK ) ; pushResultProcessingMock.onRefReplicatedToOneNode ( "someProject" , "ref2" , uri2 , RefPushResult.SUCCEEDED , RemoteRefUpdate.Status.OK ) ; pushResultProcessingMock.onRefReplicatedToAllNodes ( "someProject" , "ref1" , 3 ) ; pushResultProcessingMock.onRefReplicatedToAllNodes ( "someProject" , "ref2" , 2 ) ; pushResultProcessingMock.onAllRefsReplicatedToAllNodes ( 5 ) ; org.easymock.EasyMock.replay ( pushResultProcessingMock ) ; replicationState.increasePushTaskCount ( "someProject" , "ref1" ) ; replicationState.increasePushTaskCount ( "someProject" , "ref1" ) ; replicationState.increasePushTaskCount ( "someProject" , "ref1" ) ; replicationState.increasePushTaskCount ( "someProject" , "ref2" ) ; replicationState.increasePushTaskCount ( "someProject" , "ref2" ) ; replicationState.markAllPushTasksScheduled ( ) ; replicationState.notifyRefReplicated ( "someProject" , "ref1" , uri1 , RefPushResult.SUCCEEDED , RemoteRefUpdate.Status.OK ) ; replicationState.notifyRefReplicated ( "someProject" , "ref1" , uri2 , RefPushResult.SUCCEEDED , RemoteRefUpdate.Status.OK ) ; replicationState.notifyRefReplicated ( "someProject" , "ref1" , uri3 , RefPushResult.SUCCEEDED , RemoteRefUpdate.Status.OK ) ; replicationState.notifyRefReplicated ( "someProject" , "ref2" , uri1 , RefPushResult.SUCCEEDED , RemoteRefUpdate.Status.OK ) ; replicationState.notifyRefReplicated ( "someProject" , "ref2" , uri2 , RefPushResult.SUCCEEDED , RemoteRefUpdate.Status.OK ) ; org.easymock.EasyMock.verify ( pushResultProcessingMock ) ; }