public Map<String, String> getEnvVariables() {
    return envVariables;
  }
@Test
  public void constructor_puts_System_getEnv_into_map_of_env_variables() throws IOException {
    File workDir = temp.newFolder();
    System2 system2 = Mockito.mock(System2.class);
    Map<String, String> env = IntStream.range(0, 1 + new Random().nextInt(99)).mapToObj(String::valueOf).collect(Collectors.toMap(i -> "key" + i, j -> "value" + j));
    when(system2.getenv()).thenReturn(env);
    AbstractCommand underTest = new AbstractCommand(ProcessId.ELASTICSEARCH, workDir, system2) {

    };

    assertThat(underTest.getEnvVariables()).isEqualTo(env);
  }