### Question:
WinRegistry { public static boolean setRootPath(Path rootPath) { if (rootPath == null) { throw new IllegalArgumentException("rootPath cannot be null"); } if (!OsUtils.isWindows()) { throw new RuntimeException("Cannot set RootPath in registry (not running on Windows)."); } ProcessBuilder builder = new ProcessBuilder(); builder.command("reg", "ADD", "HKCU\\Software\\PeerWasp", "/v", "rootpath", "/t", "REG_SZ", "/d", rootPath.toString(), "/f" ); if (!ExecuteProcessUtils.executeCommand(builder, null)) { logger.warn("Could not set the port in the registry"); return false; } return true; } private  WinRegistry(); static boolean setApiServerPort(int port); static boolean setRootPath(Path rootPath);  }### Answer:
@Test public void testSetRootPath() { for (int i = 0; i < NUMBER_ITERATIONS; ++i) { String randomFolder = RandomStringUtils.randomAlphanumeric(12); Path rootPath = Paths.get("C:\\PeerWasp\\", randomFolder); WinRegistry.setRootPath(rootPath); assertRootPath(rootPath); } }