@Override
  public void close() throws IOException {
    if (inputStream != null) {
      inputStream.close();
    }
  }
@Test
  public void close() {
    cs.close();

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

    assertEquals(-1, n);
  }