@Override
  public SeekableInputStream newStream() {
    return new InMemorySeekableInputStream(contents);
  }
@Test
  public void testReadAfterClose() throws IOException {
    InMemoryInputFile inputFile =
        new InMemoryInputFile("abc".getBytes(StandardCharsets.ISO_8859_1));
    InputStream inputStream = inputFile.newStream();
    assertThat(inputStream.read()).isEqualTo('a');
    inputStream.close();
    assertThatThrownBy(inputStream::read).hasMessage("Stream is closed");
  }