public void checkLocatorLoad(final Map expected) {
    List locators = Locator.getLocators();
    Assert.assertEquals(1, locators.size());
    InternalLocator locator = (InternalLocator) locators.get(0);
    final ServerLocator sl = locator.getServerLocatorAdvisee();
    sl.getDistributionAdvisor().dumpProfiles("PROFILES= ");
    await().timeout(300, TimeUnit.SECONDS)
        .until(() -> expected.equals(sl.getLoadMap()));
  }
Test that the locator balances load between three servers with intersecting server groups.
Server: 1 2 3 Groups: a a,b b
geode-core/src/distributedTest/java/org/apache/geode/cache/client/internal/LocatorLoadBalancingDUnitTest.java