@Override
      public Object call() {
        Region custRegion = getCache().getRegion(CUSTOMER);
        TXManagerImpl mgr = getCache().getTXMgr();
        mgr.begin();
        FunctionService.onRegion(custRegion).execute(TXFunction.id).getResult();
        assertThat(mgr.getTXState()).isNotNull();
        TXStateProxy tx = mgr.pauseTransaction();
        assertThat(mgr.getTXState()).isNull();
        getCache().getLogger().fine("SWAP:callingget");
        assertThat(custRegion.get(expectedCustId))
            .as("expected null but was:" + custRegion.get(expectedCustId)).isNull();
        mgr.unpauseTransaction(tx);
        mgr.commit();
        assertThat(expectedCustomer).isEqualTo(custRegion.get(expectedCustId));
        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