### Question:
ReadCsv { public static CsvReader fromFile(File file) { return fromFile(file.toPath()); } private  ReadCsv(); static CsvReader fromResources(String fileOnClassPath); static CsvReader fromFile(File file); static CsvReader fromFile(String filePath); static CsvReader fromFile(Path filePath); static CsvReader fromString(String csvString);  }### Answer:
@Test public void canReadFromFile() throws IOException { Path temp = Files.createTempFile("simple_data", ".csv"); Files.write(temp, csv.getBytes()); temp.toFile().deleteOnExit(); CsvReader csvReader = ReadCsv.fromFile(temp); canRead(csvReader); }