createTempDirectoryForTest

Creates a new directory in the default temporary-file directory, using the given prefix to generate its name. The resulting directory in the returned path is automatically deleted on JVM exit.