@Override
  public void close() throws IOException {
    if (closed) {
      return;
    }

    super.close();
    this.closed = true;
    if (stream != null) {
      stream.close();
    }
  }
@Test
  public void testMultipleClose() throws IOException {
    DataLakeFileClient fileClient = AZURITE_CONTAINER.fileClient(randomPath());
    ADLSOutputStream stream =
        new ADLSOutputStream(fileClient, azureProperties, MetricsContext.nullMetrics());
    stream.close();
    stream.close();
  }