### Question:
DiffInfo { public static DiffInfo fromFile(String path) { try { return new DiffInfo(Files.newBufferedReader(Paths.get(path))); } catch (IOException exc) { throw new RuntimeException("Could not open file: " + path, exc); } } DiffInfo(BufferedReader reader); boolean contains(String path); static DiffInfo fromFile(String path);  }### Answer:
@Test void testFromFileWithANotExistingFile() { assertThrows(RuntimeException.class, () -> { DiffInfo.fromFile("notExistingPath"); }); }