public static UnifiedDiff parseUnifiedDiff(InputStream stream) throws IOException, UnifiedDiffParserException {
        UnifiedDiffReader parser = new UnifiedDiffReader(new BufferedReader(new InputStreamReader(stream)));
        return parser.parse();
    }
@Test
    public void testParseIssue141() throws IOException {
        UnifiedDiff diff = UnifiedDiffReader.parseUnifiedDiff(
                UnifiedDiffReaderTest.class.getResourceAsStream("problem_diff_issue141.diff"));
        UnifiedDiffFile file1 = diff.getFiles().get(0);

        assertThat(file1.getFromFile()).isEqualTo("a.txt");
        assertThat(file1.getToFile()).isEqualTo("a1.txt");
    }