### Question:
WikidataLinkMap implements Serializable { public boolean writeFile(String fn) { try { OutputStream out = new FileOutputStream(fn); writeObject(out); } catch (Exception e) { e.printStackTrace(); return false; } return true; } WikidataLinkMap(String fn);  WikidataLinkMap(String fn, boolean unique); String title2Data(String in); boolean writeFile(String fn);  }### Answer:
@Test public void testWriteFile() throws Exception { final File temp = File.createTempFile("temp", Long.toString(System.nanoTime())); WikidataLinkMap map = new WikidataLinkMap(getClass().getResource("title2Data.csv").getFile(), false); map.writeFile(temp.getAbsolutePath()); System.out.println(temp.getAbsolutePath()); }