@Test
public void testRaftActorRecoveryWithPersistenceDisabled() {

    String persistenceId = factory.generateActorId("follower-");
    DefaultConfigParamsImpl config = new DefaultConfigParamsImpl();
    config.setHeartBeatInterval(new FiniteDuration(1, TimeUnit.DAYS));
    TestActorRef<MockRaftActor> ref = factory.createTestActor(MockRaftActor.props(persistenceId,
            ImmutableMap.<String, String>builder().put("member1", "address").build(),
            config, createProvider()), persistenceId);
    MockRaftActor mockRaftActor = ref.underlyingActor();
    mockRaftActor.waitForRecoveryComplete();
    mockRaftActor.waitForInitializeBehaviorComplete();
    assertEquals("getRaftState", RaftState.Follower, mockRaftActor.getRaftState());
}