static File createTempDirectory(String prefix) throws IOException {
    File tempDir = Files.createTempDirectory(prefix).toFile();
    tempDir.deleteOnExit();
    return tempDir;
  }
Creates a temporary directory whose name starts with the given {@code prefix}.
@param prefix the prefix of the directory name.
@return the directory created as a {@link File} instance.
@throws IOException
ambry-store/src/test/java/com/github/ambry/store/StoreTestUtils.java