@Test
public void testElectionNotScheduledWhenNonRaftRPCMessageReceived() {

    MockRaftActorContext context = createActorContext();
    follower = createBehavior(context);
    follower.handleMessage(leaderActor, "non-raft-rpc");
    verify(follower, never()).scheduleElection(any(FiniteDuration.class));
}