@Override
      public Object call() {
        Region<CustId, Customer> cust = getCache().getRegion(CUSTOMER);
        Region<CustId, Customer> ref = getCache().getRegion(D_REFERENCE);
        TXManagerImpl mgr = getCache().getTxManager();
        mgr.begin();
        Customer customer = new Customer("customer1", "address1");
        Customer customer2 = new Customer("customer2", "address2");
        Customer fakeCust = new Customer("foo2", "bar2");
        assertThatThrownBy(() -> cust
            .removeAll(Arrays.asList(custId0, custId4, custId1, custId2, custId3, custId20)))
                .isInstanceOf(TransactionDataNotColocatedException.class);
        mgr.rollback();
        assertThat(cust.get(custId0)).isNotNull();
        assertThat(cust.get(custId1)).isNotNull();
        assertThat(cust.get(custId2)).isNotNull();
        assertThat(cust.get(custId3)).isNotNull();
        assertThat(cust.get(custId4)).isNotNull();
        return mgr.getTransactionId();
      }
Make sure that getEntry returns null properly and values when it should
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/RemoteTransactionDUnitTest.java