@Test
public void shouldIssueRequestVoteWithCorrectLogPrefix() throws StorageException {

    insertIntoLog(
            SENTINEL(),
            NOOP(1, 1),
            NOOP(2, 1),
            NOOP(3, 2)
    );
    algorithm.becomeFollower(2, null);
    assertThatSelfTransitionedToFollower(2, 0, null, false);
    triggerElection(3);
    Collection<RequestVote> requestVotes = getRPCs(4, RequestVote.class);
    assertThatRPCsSentTo(requestVotes, S_01, S_02, S_03, S_04);
    assertThatRequestVotesHaveValues(requestVotes, 3, 3, 2);
    assertThatNoMoreRPCsWereSent();
    assertThatLogContains(
            SENTINEL(),
            NOOP(1, 1),
            NOOP(2, 1),
            NOOP(3, 2)
    );
    assertThatTermAndCommitIndexHaveValues(3, 0);
}