### Question:
RecentFilesHelper { protected final List<File> getListRepresentation(String recentFilesStr) { if(StringUtil.isEmpty(recentFilesStr)) { return Collections.<File>emptyList(); } LinkedList<File> out = new LinkedList<File>(); String[] arr = recentFilesStr.split(SPLIT_KEY); for(String str: arr) { try{ out.addLast(new File(URLDecoder.decode(str, Charsets.UTF_8.name()))); } catch(UnsupportedEncodingException ex) { throw new RuntimeException(ex); } } return out; } RecentFilesHelper();   }### Answer:
@Test public void testGetListRepresentation() { System.out.println("getListRepresentation"); RecentFilesHelper instance = new RecentFilesHelper(); File file1 = new File(new File(System.getProperty("user.dir")), "subhash.txt"); File file2 = new File(new File(System.getProperty("user.dir")), "aarthi.txt"); LinkedList<File> expResult = new LinkedList<File>(); expResult.add(file1); expResult.add(file2); String recentFilesStr = instance.getStringRepresentation(expResult); List<File> result = instance.getListRepresentation(recentFilesStr); assertEquals(expResult, result); }