public ParseResult parse(File file) throws IOException, SchemaParseException {
    return parse(file, null);
  }
@Test
  void testIOFailureWhileParsingText() {
    AvroRuntimeException exception = assertThrows(AvroRuntimeException.class,
        () -> new SchemaParser().parse(DummySchemaParser.SCHEMA_TEXT_IO_ERROR).mainSchema());
    assertEquals(IOException.class, exception.getCause().getClass());
    assertEquals(DummySchemaParser.IO_ERROR_MESSAGE, exception.getCause().getMessage());
  }