@Test
  public void prepareNewMemberRemovesOldPersistentMemberId() {
    InternalDistributedMember sender = mock(InternalDistributedMember.class);
    PersistentMemberID oldId = mock(PersistentMemberID.class);
    PersistentMemberID newId = mock(PersistentMemberID.class);
    when(cacheDistributionAdvisor.containsId(sender)).thenReturn(true);
    PersistenceAdvisorImpl spy = spy(persistenceAdvisorImpl);
    doNothing().when(spy).memberRemoved(oldId, false);

    spy.prepareNewMember(sender, oldId, newId);

    verify(persistentMemberView).memberOnline(newId);
    verify(spy).memberRemoved(oldId, false);
  }
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