@Override
  public void close() throws IOException {
    super.close();
    this.closed = true;
    if (stream != null) {
      stream.close();
    }
  }
@Test
  public void testClose() throws Exception {
    setupData(randomData(2));
    SeekableInputStream closed =
        new ADLSInputStream(fileClient(), null, azureProperties, MetricsContext.nullMetrics());
    closed.close();
    assertThatThrownBy(() -> closed.seek(0))
        .isInstanceOf(IllegalStateException.class)
        .hasMessage("Cannot seek: already closed");
  }