@Test
public void testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId() {

    logStart("testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId");
    MockRaftActorContext context = createActorContext();
    long term = 1000;
    context.getTermInformation().update(term, "test");
    follower = createBehavior(context);
    follower.handleMessage(leaderActor, new RequestVote(term, "candidate", 10000, 999));
    RequestVoteReply reply = MessageCollectorActor.expectFirstMatching(leaderActor, RequestVoteReply.class);
    assertEquals("isVoteGranted", false, reply.isVoteGranted());
    verify(follower, never()).scheduleElection(any(FiniteDuration.class));
}