@Override
  public void reset() throws IOException {
    createDirectory(PATH_DATA.getKey());
    createDirectory(PATH_WEB.getKey());
    createDirectory(PATH_LOGS.getKey());
    File tempDir = createOrCleanTempDirectory(PATH_TEMP.getKey());
    try (AllProcessesCommands allProcessesCommands = new AllProcessesCommands(tempDir)) {
      allProcessesCommands.clean();
    }
  }
@Test
  public void reset_cleans_the_sharedmemory_file() throws IOException {
    assertThat(tempDir.mkdir()).isTrue();
    try (AllProcessesCommands commands = new AllProcessesCommands(tempDir)) {
      for (int i = 0; i < MAX_PROCESSES; i++) {
        commands.create(i).setUp();
      }

      underTest.reset();

      for (int i = 0; i < MAX_PROCESSES; i++) {
        assertThat(commands.create(i).isUp()).isFalse();
      }
    }
  }