protected File givenPidFile(final Object content) {
    try {
      File file = new File(getWorkingDirectory(), getProcessType().getPidFileName());
      FileWriter writer = new FileWriter(file);
      writer.write(String.valueOf(content));
      writer.write(lineSeparator());
      writer.flush();
      writer.close();
      assertTrue(file.exists());
      return file;
    } catch (IOException e) {
      throw new UncheckedIOException(e);
    }
  }
Abstract base class for integration tests of both {@link LocatorLauncher} and
{@link ServerLauncher}.

@since GemFire 8.0
geode-core/src/integrationTest/java/org/apache/geode/distributed/LauncherIntegrationTestCase.java