PatchsetCreated patchsetCreated = Setup.createPatchsetCreated("someGerritServer", "someProject",
"refs/changes/1/1/1");
Item item = createItem(patchsetCreated, new String[] {"slaveA"});
//item is blocked
CauseOfBlockage cause = dispatcher.canRun(item);
assertNotNull("The item should be blocked", cause);
assertTrue("Should have returned a WaitingForReplication as CauseOfBlockage",
cause instanceof WaitingForReplication);
assertTrue(cause.getShortDescription().contains("slaveA"));
//send an unrelated event (not RefReplicated)
dispatcher.gerritEvent(new ChangeAbandoned());
assertNotNull("the item should be blocked", dispatcher.canRun(item));