Code example for InterruptedIOException

0
    Closer.close(reader);
 
    m_ioexception[0] = new IOException();
    Closer.close(reader);
 
    m_ioexception[0] = new InterruptedIOException();
 
    try { 
      Closer.close(reader);
      fail("Expected UncheckedInterruptedException"); 
    } 
    catch (UncheckedInterruptedException e) {
      assertSame(m_ioexception[0], e.getCause());
    } 
  } 
 
  @Test public void testCloseWriter() throws Exception { 
    Closer.close((Writer)null);
 
    final Writer writer = new Writer() {
      public void close() throws IOException {