@Test(expected = PersistenceException.class)
public void doAction_replicatorException() throws PersistenceException, ReplicationException {

    doThrow(ReplicationException.class).when(replicator).replicate(session, ReplicationActionType.ACTIVATE, "path");
    action.doAction(resource);
}