@Test
public void testReadInvalidFile() {

    try {
        new TypescriptInputReader(dependencyGraph).read("src/test/resources/typescript/not-an-xml-file.noxml");
        fail("IllegalArgumentException expected");
    } catch(IllegalArgumentException e) {
        assertThat(e.getCause()).isInstanceOf(IOException.class);
        assertThat(e.getMessage()).startsWith("com.fasterxml.jackson.core.JsonParseException: Unexpected close tag </invalid-end-tag>; expected </start-tag>");
    }
}