@Test
public void testResponseToRequestVoteWithLowerTerm() {

    candidate = new Candidate(createActorContext());
    setupPeers(1);
    candidate.handleMessage(peerActors[0], new RequestVote(1, "test", 0, 0));
    RequestVoteReply reply = MessageCollectorActor.expectFirstMatching(
            peerActors[0], RequestVoteReply.class);
    assertEquals("isVoteGranted", false, reply.isVoteGranted());
    assertEquals("getTerm", 2, reply.getTerm());
}