@Override
  public void close() {
    if (input != null) {
      try {
        input.close();
      } catch (IOException e) {
        LOG.warn("failed to close stream", e);
      }
    }
  }
@Test
  public void close() throws IOException {
    ss.open();
    ss.close();

    int n = -1;
    try {
      byte[] buff = new byte[1];
      n = ss.read(buff);
    } catch (IOException ignored) {
    }

    assertEquals(-1, n);
  }