### Question:
FileUtils { public static void createWorkDirAndUserIfAbsent(String execLocalPath, String userName) throws IOException { File execLocalPathFile = new File(execLocalPath); if (execLocalPathFile.exists()) { org.apache.commons.io.FileUtils.forceDelete(execLocalPathFile); } org.apache.commons.io.FileUtils.forceMkdir(execLocalPathFile); String mkdirLog = "create dir success " + execLocalPath; LoggerUtils.logInfo(Optional.ofNullable(logger), mkdirLog); LoggerUtils.logInfo(Optional.ofNullable(taskLoggerThreadLocal.get()), mkdirLog); OSUtils.taskLoggerThreadLocal.set(taskLoggerThreadLocal.get()); try { if (!OSUtils.getUserList().contains(userName)) { boolean isSuccessCreateUser = OSUtils.createUser(userName); String infoLog; if (isSuccessCreateUser) { infoLog = String.format("create user name success %s", userName); } else { infoLog = String.format("create user name fail %s", userName); } LoggerUtils.logInfo(Optional.ofNullable(logger), infoLog); LoggerUtils.logInfo(Optional.ofNullable(taskLoggerThreadLocal.get()), infoLog); } } catch (Throwable e) { LoggerUtils.logError(Optional.ofNullable(logger), e); LoggerUtils.logError(Optional.ofNullable(taskLoggerThreadLocal.get()), e); } OSUtils.taskLoggerThreadLocal.remove(); } private  FileUtils(); static String suffix(String filename); static String getDownloadFilename(String filename); static String getUploadFilename(String tenantCode, String filename); static String getProcessExecDir(int projectId, int processDefineId, int processInstanceId, int taskInstanceId); static String getProcessExecDir(int projectId, int processDefineId, int processInstanceId); static String getResourceViewSuffixs(); static void createWorkDirAndUserIfAbsent(String execLocalPath, String userName); static boolean writeContent2File(String content, String filePath); static void writeStringToFile(File file, String data, Charset encoding); static void writeStringToFile(File file, String data, String encoding); static void writeStringToFile(File file, String data, Charset encoding, boolean append); static void writeStringToFile(File file, String data, String encoding, boolean append); static void writeStringToFile(File file, String data); static void writeStringToFile(File file, String data, boolean append); static FileOutputStream openOutputStream(File file); static FileOutputStream openOutputStream(File file, boolean append); static void deleteDir(String dir); static void deleteFile(String filename); static File[] getAllDir(String parentDir); static String readFile2Str(InputStream inputStream); static final Logger logger; static final String DATA_BASEDIR; static final ThreadLocal<Logger> taskLoggerThreadLocal; }### Answer:
@Test public void testCreateWorkDirAndUserIfAbsent() { try { FileUtils.createWorkDirAndUserIfAbsent("/tmp/createWorkDirAndUserIfAbsent", "test123"); Assert.assertTrue(true); } catch (Exception e) { Assert.assertTrue(false); } }