@Test
public void testDecrNextIndex() {

    MockRaftActorContext context = new MockRaftActorContext();
    context.setCommitIndex(1);
    FollowerLogInformation followerLogInformation =
            new FollowerLogInformation(new PeerInfo("follower1", null, VotingState.VOTING), 1, context);
    assertTrue(followerLogInformation.decrNextIndex(1));
    assertEquals("getNextIndex", 0, followerLogInformation.getNextIndex());
    assertTrue(followerLogInformation.decrNextIndex(1));
    assertEquals("getNextIndex", -1, followerLogInformation.getNextIndex());
    assertFalse(followerLogInformation.decrNextIndex(1));
    assertEquals("getNextIndex", -1, followerLogInformation.getNextIndex());
}