private static void createReplicatedRegionWithEviction(String regionName) {
    EvictionAttributesImpl evictionAttributes = new EvictionAttributesImpl()
        .setAction(EvictionAction.OVERFLOW_TO_DISK)
        .setAlgorithm(EvictionAlgorithm.LRU_ENTRY)
        .setMaximum(1);

    createRegionFactory(REPLICATE)
        .setEvictionAttributes(evictionAttributes)
        .create(regionName);
  }
Override to specify the mechanism used to connect to the Locator.
geode-dunit/src/main/java/org/apache/geode/management/internal/cli/commands/QueryCommandDistributedTestBase.java