### Question:
ConfigUtils { public static void set(Map<String,Object> overlay, String key, Path path) throws IOException { Path finalPath = Files.exists(path, LinkOption.NOFOLLOW_LINKS) ? path.toRealPath(LinkOption.NOFOLLOW_LINKS) : path; overlay.put(key, "\"" + finalPath.toUri() + "\""); } private  ConfigUtils(); static Config getDefault(); static Config overlayOn(Map<String,?> overlay, Config underlying); static String getOptionalString(Config config, String key); static List<String> getOptionalStringList(Config config, String key); static Double getOptionalDouble(Config config, String key); static void set(Map<String,Object> overlay, String key, Path path); static String serialize(Config config); static Config deserialize(String serialized); static String prettyPrint(Config config); static Properties keyValueToProperties(Object... keyValues);  }### Answer:
@Test public void testSetPath() throws Exception { Path cwd = Paths.get("."); Map<String,Object> map = new HashMap<>(); ConfigUtils.set(map, "cwd", cwd); ConfigUtils.set(map, "temp", Paths.get("/tmp")); assertEquals("\"" + cwd.toRealPath(LinkOption.NOFOLLOW_LINKS).toUri() + "\"", map.get("cwd")); assertEquals("\"file: }