@Test
public void testResponseToHandleAppendEntriesWithLowerTerm() {

    candidate = new Candidate(createActorContext());
    setupPeers(1);
    RaftActorBehavior newBehavior = candidate.handleMessage(peerActors[0], new AppendEntries(1, "test", 0, 0,
            Collections.<ReplicatedLogEntry>emptyList(), 0, -1, (short) 0));
    AppendEntriesReply reply = MessageCollectorActor.expectFirstMatching(
            peerActors[0], AppendEntriesReply.class);
    assertEquals("isSuccess", false, reply.isSuccess());
    assertEquals("getTerm", 2, reply.getTerm());
    assertTrue("New Behavior : " + newBehavior, newBehavior instanceof Candidate);
}