@Test
  public void testNoLocators() {

    VM vm0 = VM.getVM(0);

    try {
      vm0.invoke("StartBridgeClient",
          () -> startBridgeClient(null, getServerHostName(), getRandomAvailableTCPPort()));
      checkLocators(vm0, new InetSocketAddress[] {});
      putInVM(vm0);
      fail("Client cache should not have been able to start");
    } catch (Exception e) {
      // expected an exception
    }
  }
Tests cases that are particular for the auto connection source - dynamically discovering servers,
locators, handling locator disappearance, etc.
geode-core/src/distributedTest/java/org/apache/geode/cache/client/internal/AutoConnectionSourceDUnitTest.java