dispatcher.gerritEvent(Setup.createRefReplicatedEvent("someProject", "refs/changes/1/1/1", "someGerritServer",
"slaveB", RefReplicated.SUCCEEDED_STATUS));
assertNotNull("the item should be blocked", dispatcher.canRun(item));
//send a malformed replication event (missing provider)
RefReplicated refReplicated = Setup.createRefReplicatedEvent("someProject", "refs/changes/1/1/1",
"someGerritServer", "slaveB", RefReplicated.SUCCEEDED_STATUS);
refReplicated.setProvider(null);
dispatcher.gerritEvent(refReplicated);
assertNotNull("the item should be blocked", dispatcher.canRun(item));
//send the proper replication event
dispatcher.gerritEvent(Setup.createRefReplicatedEvent("someProject", "refs/changes/1/1/1", "someGerritServer",