@Test
public void testResponseToHandleAppendEntriesWithEqualTerm() {

    MockRaftActorContext actorContext = createActorContext();
    candidate = new Candidate(actorContext);
    setupPeers(1);
    RaftActorBehavior newBehavior = candidate.handleMessage(peerActors[0], new AppendEntries(2, "test", 0, 0,
            Collections.<ReplicatedLogEntry>emptyList(), 0, -1, (short) 0));
    assertTrue("New Behavior : " + newBehavior + " term = " + actorContext.getTermInformation().getCurrentTerm(),
            newBehavior instanceof Follower);
}