@Test
  public void enforceUniqueHostShouldBeUsableForLoner() throws Exception {
    cache = new CacheFactory().set(MCAST_PORT, "0").set(LOCATORS, "")
        .set(ENFORCE_UNIQUE_HOST, "true").set(REDUNDANCY_ZONE, "zone1").create();
    assertThat(cache.isClosed()).isFalse();
  }
Creation of cache should not throw UnsupportedOperationException
geode-core/src/integrationTest/java/org/apache/geode/internal/cache/EnforceUniqueHostForLonerIntegrationTest.java