METHOD_0 ( ) { IDENT_0 . IDENT_1 IDENT_2 = new IDENT_0 . METHOD_1 ( new IDENT_0 . METHOD_2 ( ) ) { @ IDENT_0 . Override public void write ( IDENT_0 . METHOD_2 source , long IDENT_3 ) throws java . io . IOException { throw new java . io . IOException ( STRING_0 ) ; } } ; IDENT_0 . IDENT_4 IDENT_5 = new IDENT_0 . METHOD_3 ( ) ; IDENT_5 . METHOD_4 ( INT_0 , TimeUnit . IDENT_6 ) ; IDENT_0 . IDENT_1 IDENT_7 = METHOD_4 . METHOD_5 ( METHOD_5 ) ; IDENT_0 . METHOD_2 data = new IDENT_0 . METHOD_2 ( ) . METHOD_6 ( "a" ) ; try { IDENT_7 . write ( data , 1 ) ; org . junit . Assert . fail ( ) ; } catch ( java . io . IOException expected ) { "<AssertPlaceHolder>" ; } } write ( IDENT_0 . METHOD_2 , long ) { if ( ! ( channel . METHOD_7 ( ) ) ) throw new java . lang . IllegalStateException ( STRING_1 ) ; if ( IDENT_3 == 0 ) return ; long IDENT_8 = IDENT_3 ; while ( IDENT_8 > 0 ) { METHOD_4 . METHOD_8 ( ) ; try ( IDENT_0 . METHOD_2 . IDENT_9 IDENT_10 = source . METHOD_9 ( IDENT_11 ) ) { IDENT_11 . METHOD_10 ( 0 ) ; int length = ( ( int ) ( java . lang . Math . min ( ( ( IDENT_11 . end ) - ( IDENT_11 . start ) ) , IDENT_8 ) ) ) ; int IDENT_12 = channel . write ( java . nio . ByteBuffer . METHOD_11 ( IDENT_11 . data , IDENT_11 . start , length ) ) ; IDENT_8 OP_0 IDENT_12 ; source . METHOD_12 ( IDENT_12 ) ; } } }
org . junit . Assert . assertEquals ( STRING_0 , expected . getMessage ( ) )