### Question:
Settings { public static void writeSettings(Settings settings, String path) { try { BufferedWriter bw = new BufferedWriter(new FileWriter(path)); String biocuratorID = settings.getBiocuratorID(); String pathToLoincCoreTableFile = settings.getLoincCoreTablePath(); String pathToHpoOboFile = settings.getHpoOboPath(); String pathToHpoOwlFile = settings.getHpoOwlPath(); String pathToAutoSavedFolder = settings.getAnnotationFolder(); Map<String, String> userCreatedLoincListsColor = settings.getUserCreatedLoincListsColor(); if (biocuratorID!=null) { bw.write(String.format("biocuratorid:%s\n",biocuratorID)); } if (pathToLoincCoreTableFile!=null) { bw.write(String.format("loincTablePath:%s\n",pathToLoincCoreTableFile)); } if (pathToHpoOboFile!=null) { bw.write(String.format("hp-obo:%s\n",pathToHpoOboFile)); } if (pathToHpoOwlFile!= null) { bw.write(String.format("hp-owl:%s\n", pathToHpoOwlFile)); } if (pathToAutoSavedFolder != null) { bw.write(String.format("autosave to:%s\n", pathToAutoSavedFolder)); } if (!userCreatedLoincListsColor.isEmpty()) { bw.write("loinc-list-color:"); List<String> list_color_pair = userCreatedLoincListsColor.entrySet().stream() .map(e -> e.getKey() + "," + e.getValue()) .collect(Collectors.toList()); bw.write(String.join("|", list_color_pair)); bw.write("\n"); } bw.close(); } catch (IOException e) { e.printStackTrace(); logger.error("Could not write settings at " + path); } } Settings();  Settings(String hpoOboPath, String hpoOwlPath, String loincCoreTablePath, String annotationFolder, String biocuratorID, Map<String, String> userCreatedLoincListsColor); static Settings loadSettings(Settings settings, String settingsPath); static void writeSettings(Settings settings, String path); static Logger getLogger(); static void setLogger(Logger logger); String getHpoOboPath(); StringProperty hpoOboPathProperty(); void setHpoOboPath(String hpoOboPath); String getHpoOwlPath(); StringProperty hpoOwlPathProperty(); void setHpoOwlPath(String hpoOwlPath); String getLoincCoreTablePath(); StringProperty loincCoreTablePathProperty(); void setLoincCoreTablePath(String loincCoreTablePath); String getAnnotationFolder(); StringProperty annotationFolderProperty(); void setAnnotationFolder(String annotationFolder); String getBiocuratorID(); StringProperty biocuratorIDProperty(); void setBiocuratorID(String biocuratorID); Map<String, String> getUserCreatedLoincListsColor(); void setUserCreatedLoincListsColor(Map<String, String> userCreatedLoincListsColor); BooleanProperty isCompleteProperty(); boolean status(); String toString();  }### Answer:
@Test public void writeSettings() throws Exception { }