@Test
public void testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull() {

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