@Test
  public void testUpdateLoad() {
    final LocatorLoadSnapshot sn = new LocatorLoadSnapshot();
    final ServerLocation l1 = new ServerLocation("localhost", 1);
    final ServerLocation l2 = new ServerLocation("localhost", 2);
    final String uniqueId1 = new InternalDistributedMember("localhost", 1).getUniqueId();
    final String uniqueId2 = new InternalDistributedMember("localhost", 2).getUniqueId();
    sn.addServer(l1, uniqueId1, new String[0], new ServerLoad(1, 1, 1, 1), LOAD_POLL_INTERVAL);
    sn.addServer(l2, uniqueId2, new String[0], new ServerLoad(100, .2f, 1, .2f),
        LOAD_POLL_INTERVAL);

    assertThat(sn.getServerForConnection(null, Collections.emptySet())).isEqualTo(l1);
    assertThat(sn.getServerForConnection(null, Collections.emptySet())).isEqualTo(l1);
    sn.updateLoad(l1, uniqueId1, new ServerLoad(200, 1, 1, 1));
    assertThat(sn.getServerForConnection(null, Collections.emptySet())).isEqualTo(l2);
    assertThat(sn.getServerForConnection(null, Collections.emptySet())).isEqualTo(l2);
  }
Test the updateLoad method. The snapshot should use the new load when choosing a server.
geode-core/src/test/java/org/apache/geode/distributed/internal/LocatorLoadSnapshotTest.java