@Test
  public void testRemoteCreateInReplicatedRegion() {
    Host host = Host.getHost(0);
    VM accessor = host.getVM(0);
    VM datastore = host.getVM(1);
    initAccessorAndDataStore(accessor, datastore, 0);

    TXId txId = (TXId) accessor.invoke(new DoOpsInTX(OP.PUT));

    accessor.invoke(new SerializableCallable<Object>() {

      @Override
      public Object call() {
        Region refRegion = getCache().getRegion(D_REFERENCE);
        refRegion.create("sup", "dawg");
        return null;
      }
    });

    accessor.invoke(new SerializableCallable<Object>() {
      @Override
      public Object call() {
        TXManagerImpl mgr = getCache().getTxManager();
        mgr.resume(txId);
        TXStateProxy tx = mgr.pauseTransaction();
        assertThat(tx).isNotNull();
        mgr.unpauseTransaction(tx);
        mgr.commit();
        return null;
      }
    });

    accessor.invoke(new SerializableCallable<Object>() {

      @Override
      public Object call() {
        Region refRegion = getCache().getRegion(D_REFERENCE);
        assertThat(refRegion.get("sup")).isEqualTo("dawg");
        return null;
      }
    });
  }
@return first key found on the given member
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/RemoteTransactionDUnitTest.java