@Test
  public void testMinimalConfiguration() {
    AutoBalancer autoR = new AutoBalancer();
    assertThatThrownBy(() -> autoR.initialize(null, null))
        .isInstanceOf(GemFireConfigException.class);

    Properties props = getBasicConfig();
    assertThatCode(() -> autoR.initialize(null, props)).doesNotThrowAnyException();
  }
UnitTests for AutoBalancer. All collaborators should be mocked.
geode-rebalancer/src/test/java/org/apache/geode/cache/util/AutoBalancerJUnitTest.java