@Test
  public void testExtensionsJars() throws IOException {

    // when there is no `extensions` directory
    String gemfireClasspath = StartMemberUtils.toClasspath(true, new String[0]);
    assertThat(gemfireClasspath).doesNotContain("extensions");

    // when there is a `test.jar` in `extensions` directory
    File folder = new File(temporaryFolder, "extensions");
    Files.createDirectories(folder.toPath());
    File jarFile = new File(folder, "test.jar");
    assertThat(jarFile.createNewFile()).isTrue();
    gemfireClasspath = StartMemberUtils.toClasspath(true, new String[] {jarFile.getAbsolutePath()});
    assertThat(gemfireClasspath).contains(jarFile.getName());

  }
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