@Override
      public void execute(FunctionContext context) {
        TXManagerImpl mgr = getCache().getTxManager();
        assertThat(mgr.getTXState()).isNotNull();
        assertThatThrownBy(mgr::commit)
            .isInstanceOf(UnsupportedOperationInTransactionException.class);
        context.getResultSender().lastResult(Boolean.TRUE);
      }
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