@Test
public void testElectionScheduledWhenAnyRaftRPCReceived() {

    MockRaftActorContext context = createActorContext();
    follower = createBehavior(context);
    follower.handleMessage(leaderActor, new RaftRPC() {
        private static final long serialVersionUID = 1L;
        @Override
        public long getTerm() {
            return 100;
        }
    });
    verify(follower).scheduleElection(any(FiniteDuration.class));
}