void (String originContent, String fileName) { Scanner inputStreamScanner; String theFirstLineFromDestinationFile; <selection>try { inputStreamScanner = new Scanner(new File(fileName)); theFirstLineFromDestinationFile = inputStreamScanner.nextLine(); assertEquals(theFirstLineFromDestinationFile, originContent); } catch (FileNotFoundException e) { e.printStackTrace(); }</selection> }