@EnabledForJreRange(max = JAVA_13)
  @Test
  public void testAddMaxHeapWithCMS() {
    List<String> baseCommandLine = new ArrayList<>();

    // Empty Max Heap Option
    StartMemberUtils.addMaxHeap(baseCommandLine, null);
    assertThat(baseCommandLine).isEmpty();

    StartMemberUtils.addMaxHeap(baseCommandLine, "");
    assertThat(baseCommandLine).isEmpty();

    // Only Max Heap Option Set
    StartMemberUtils.addMaxHeap(baseCommandLine, "32g");
    assertThat(baseCommandLine).containsExactly("-Xmx32g", "-XX:+UseConcMarkSweepGC",
        "-XX:CMSInitiatingOccupancyFraction=" + MemberJvmOptions.CMS_INITIAL_OCCUPANCY_FRACTION);

    // All Options Set
    List<String> customCommandLine = new ArrayList<>(
        Arrays.asList("-XX:+UseConcMarkSweepGC", "-XX:CMSInitiatingOccupancyFraction=30"));
    StartMemberUtils.addMaxHeap(customCommandLine, "16g");
    assertThat(customCommandLine).containsExactly("-XX:+UseConcMarkSweepGC",
        "-XX:CMSInitiatingOccupancyFraction=30", "-Xmx16g");
  }
Verify that the classpath for Geode always has the geode-core jar first in the list of paths.
On entry to the test there may (depending test platform) be a version of geode-core-*.jar on
the system classpath, but at an unknown position in the list. To make the test deterministic, a
dummy geode-core-*.jar path is inserted in the system classpath at a known, but not the first,
position.
geode-gfsh/src/integrationTest/java/org/apache/geode/management/internal/cli/commands/StartMemberUtilsTest.java