@Test
public void testHandleElectionTimeoutWhenThereAreTwoNodeCluster() {

    MockRaftActorContext raftActorContext = createActorContext();
    raftActorContext.setPeerAddresses(setupPeers(1));
    candidate = new Candidate(raftActorContext);
    candidate = candidate.handleMessage(candidateActor, ElectionTimeout.INSTANCE);
    assertEquals("Behavior", RaftState.Candidate, candidate.state());
}