public void seek(long pos) throws IOException {
    throwIfClosed();
    throwIfInvalidSeek(pos);

    nextReadPos = pos;
  }
@Test
  public void testSeek() throws Exception {
    S3ARemoteInputStream inputStream;
    inputStream =
        S3APrefetchFakes.createS3InMemoryInputStream(futurePool, "bucket",
            "key", 9);
    testSeekHelper(inputStream, 9, 9);

    inputStream =
        S3APrefetchFakes.createS3CachingInputStream(futurePool, "bucket", "key",
            9, 5, 1);
    testSeekHelper(inputStream, 5, 9);
  }