@Override
  protected void createCache() throws CacheException {
    Properties properties = new Properties();
    properties.setProperty(MCAST_PORT, "0"); // loner
    properties.setProperty(ConfigurationProperties.DISTRIBUTED_TRANSACTIONS, "true");

    cache = (GemFireCacheImpl) CacheFactory.create(DistributedSystem.connect(properties));

    AttributesFactory<String, String> attributesFactory = new AttributesFactory<>();
    attributesFactory.setScope(Scope.DISTRIBUTED_NO_ACK);
    attributesFactory.setIndexMaintenanceSynchronous(true);

    region = cache.createRegion("TXTest", attributesFactory.create());
    txMgr = cache.getCacheTransactionManager();

    assertTrue(txMgr.isDistributed());
  }
Same tests as that of {@link TXWriterJUnitTest} after setting "distributed-transactions" property
to true
geode-core/src/integrationTest/java/org/apache/geode/disttx/DistTXWriterJUnitTest.java