### Question:
RecentFilesHelper { protected final String getStringRepresentation(LinkedList<File> recentFiles) { StringBuilder sb = new StringBuilder(); for(File file: recentFiles) { try { sb.append(URLEncoder.encode( file.getAbsolutePath(), Charsets.UTF_8.name())); sb.append(SPLIT_KEY); } catch(UnsupportedEncodingException ex) { throw new RuntimeException(ex); } } if(sb.length() > 0) sb.deleteCharAt(sb.length() - 1); return sb.toString(); } RecentFilesHelper();   }### Answer:
@Test public void testGetStringRepresentation() throws Exception{ System.out.println("getStringRepresentation"); LinkedList<File> recentFiles = new LinkedList<File>(); File file1 = new File("subhash.txt"); recentFiles.add(file1); File file2 = new File("aarthi.txt"); recentFiles.add(file2); RecentFilesHelper instance = new RecentFilesHelper(); String expResult = encode(file1.getAbsolutePath()) + ";" + encode(file2.getAbsolutePath()); String result = instance.getStringRepresentation(recentFiles); assertEquals(expResult, result); }