private void initOtherId() {
    VM vm = getOtherVm();
    vm.invoke(new CacheSerializableRunnable("Connect") {
      @Override
      public void run2() throws CacheException {
        getCache();
      }
    });
    otherId = vm.invoke(() -> getSystem().getDistributedMember());
  }
Make sure that operations are distributed and done in regions remote from a PROXY

@since GemFire 5.0
geode-core/src/distributedTest/java/org/apache/geode/cache30/ProxyDUnitTest.java