@Test
  public void waitingForMembersMessage_logsMessage2_whenNoOfflineMembersWaitingFor() {
    DistributedLockService distributedLockService = mock(DistributedLockService.class);
    String regionPath = SEPARATOR + "region";
    DiskRegionStats diskRegionStats = mock(DiskRegionStats.class);
    PersistentMemberManager persistentMemberManager = mock(PersistentMemberManager.class);
    StartupStatus startupStatus = mock(StartupStatus.class);
    PersistentStateQueryMessageSenderFactory persistentStateQueryMessageSenderFactory =
        mock(PersistentStateQueryMessageSenderFactory.class);

    String transformedMissingPersistentId = "myId";

    PersistenceAdvisorImpl persistenceAdvisor = new PersistenceAdvisorImpl(cacheDistributionAdvisor,
        distributedLockService, persistentMemberView, regionPath, diskRegionStats,
        persistentMemberManager, startupStatus, id -> transformedMissingPersistentId,
        mock(CollectionTransformer.class), persistentStateQueryMessageSenderFactory);

    persistenceAdvisor.setWaitingOnMembers(emptySet(), emptySet());

    persistenceAdvisor.logWaitingForMembers();

    ArgumentCaptor<String> messageCaptor = ArgumentCaptor.forClass(String.class);
    verify(startupStatus).startup(messageCaptor.capture(), any());

    assertThat(messageCaptor.getValue())
        .contains("Region " + regionPath
            + " has potentially stale data. It is waiting for another online member to recover the latest data.")
        .contains(lineSeparator() + "My persistent id:" + lineSeparator())
        .contains(transformedMissingPersistentId)
        .contains(lineSeparator() + "Members with potentially new data:" + lineSeparator())
        // skip validation of CollectionTransformer for now
        .contains(lineSeparator()
            + "Use the gfsh show missing-disk-stores command to see all disk stores that are being waited on by other members.");
  }
GEODE-5402: This test creates a scenario where a member has two versions (based on timeStamp)
of another member. The call to getMembersToWaitFor should return that we wait for neither of
them.
geode-core/src/test/java/org/apache/geode/internal/cache/persistence/PersistenceAdvisorImplTest.java