### Question:
HadoopUtils implements Closeable { public static String getHdfsResDir(String tenantCode) { return String.format("%s/resources", getHdfsTenantDir(tenantCode)); } private  HadoopUtils(); static HadoopUtils getInstance(); Configuration getConfiguration(); String getApplicationUrl(String applicationId); String getJobHistoryUrl(String applicationId); byte[] catFile(String hdfsFilePath); List<String> catFile(String hdfsFilePath, int skipLineNums, int limit); boolean mkdir(String hdfsPath); boolean copy(String srcPath, String dstPath, boolean deleteSource, boolean overwrite); boolean copyLocalToHdfs(String srcFile, String dstHdfsPath, boolean deleteSource, boolean overwrite); boolean copyHdfsToLocal(String srcHdfsFilePath, String dstFile, boolean deleteSource, boolean overwrite); boolean delete(String hdfsFilePath, boolean recursive); boolean exists(String hdfsFilePath); FileStatus[] listFileStatus(String filePath); boolean rename(String src, String dst); boolean isYarnEnabled(); ExecutionStatus getApplicationStatus(String applicationId); static String getHdfsDataBasePath(); static String getHdfsDir(ResourceType resourceType, String tenantCode); static String getHdfsResDir(String tenantCode); static String getHdfsUserDir(String tenantCode, int userId); static String getHdfsUdfDir(String tenantCode); static String getHdfsFileName(ResourceType resourceType, String tenantCode, String fileName); static String getHdfsResourceFileName(String tenantCode, String fileName); static String getHdfsUdfFileName(String tenantCode, String fileName); static String getHdfsTenantDir(String tenantCode); static String getAppAddress(String appAddress, String rmHa); @Override void close(); static final String resourceUploadPath; static final String rmHaIds; static final String appAddress; static final String jobHistoryAddress; }### Answer:
@Test public void getHdfsResDir() { String result = hadoopUtils.getHdfsResDir("11000"); Assert.assertEquals("/dolphinscheduler/11000/resources", result); }