public void closeAfterDispose()
        {
            JavaOutputStreamAdapter testSubject = NewTestSubject();

            testSubject.Dispose();
            testSubject.close();
        }
 public void close()
 {
     using (JavaOutputStreamAdapter testSubject = NewTestSubject())
     {
         testSubject.close();
     }
 }
        public void closeWithIOException()
        {
            JavaOutputStreamAdapter testSubject = NewTestSubject(new BaseNonClosableStream());

            testSubject.close();
        }