@Override
      public Object call() {
        Region custRegion = getCache().getRegion(CUSTOMER);
        Region rr = getCache().getRegion(D_REFERENCE);
        TXManagerImpl mgr = getCache().getTxManager();
        mgr.begin();
        CustId custId = new CustId(5);
        Customer customer = new Customer("customer5", "address5");
        custRegion.put(custId, customer);
        Set set = rr.entrySet();
        Iterator it = set.iterator();
        int i = 0;
        while (it.hasNext()) {
          i++;
          it.next();
        }
        assertThat(i).isEqualTo(5);
        // assertThat(getCustIdSet(5).equals(set)).isTrue();
        assertThat(rr.entrySet().size()).isEqualTo(5);
        rr.put(custId, customer);
        set = rr.entrySet();
        // assertThat(getCustIdSet(6).equals(set)).isTrue();
        it = set.iterator();
        i = 0;
        while (it.hasNext()) {
          i++;
          it.next();
        }
        assertThat(i).isEqualTo(6);
        assertThat(rr.entrySet().size()).isEqualTo(6);
        assertThat(rr.get(custId)).isNotNull();
        TXStateProxy tx = mgr.pauseTransaction();
        // assertIndexDetailsEquals(getCustIdSet(5), rr.entrySet());
        assertThat(rr.entrySet().size()).isEqualTo(5);
        assertThat(rr.get(custId)).isNull();
        mgr.unpauseTransaction(tx);
        mgr.commit();
        return null;
      }
When we have narrowed down on a target node for a transaction, test that we throw an exception
if that node does not host primary for subsequent entries
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/RemoteTransactionDUnitTest.java