### Question:
AppData { public static void setDataFolder(final Path folder) { DATA_FOLDER_PATH = folder; } private  AppData(); static void setDataFolder(final Path folder); static Path getDataFolder(); static Path getConfigFolder(); static Path getCacheFolder(); static Path getLogFolder(); static void createFolders(); static void checkAccess();  }### Answer:
@Test public void testSetDataFolder() { AppData.setDataFolder(null); assertNull(AppData.getDataFolder()); AppData.setDataFolder(tempPath); assertNotNull(AppData.getDataFolder()); assertEquals(tempPath, AppData.getDataFolder()); AppData.setDataFolder(tempPath.resolve("abc")); assertNotNull(AppData.getDataFolder()); assertEquals(tempPath.resolve("abc"), AppData.getDataFolder()); }