CharPipe { public Reader getReader() { return _pipeReader; } CharPipe();  CharPipe(int bufferSize); void close(); void close(boolean force); Reader getReader(); Writer getWriter();  }
@Test public void testGetReader() { CharPipe charPipe = new CharPipe(); Reader reader1 = charPipe.getReader(); Reader reader2 = charPipe.getReader(); Assert.assertSame(reader1, reader2); Assert.assertFalse(reader1.markSupported()); try { reader1.mark(1); Assert.fail(); } catch (IOException ioException) { } try { reader1.reset(); Assert.fail(); } catch (IOException ioException) { } charPipe.close(); }