METHOD_0 ( ) { final java . util . concurrent . atomic . IDENT_0 count = new java . util . concurrent . atomic . METHOD_1 ( 10 ) ; final com . github . IDENT_1 . util . IDENT_2 < com . github . IDENT_1 . IDENT_3 . IDENT_4 > p = new com . github . IDENT_1 . util . IDENT_2 < com . github . IDENT_1 . IDENT_3 . IDENT_4 > ( org . mockito . Mockito . mock ( com . github . IDENT_1 . IDENT_3 . IDENT_4 . class ) , new com . github . IDENT_1 . util . METHOD_2 ( new byte [ ] { ( ( byte ) ( count . get ( ) ) ) } , java . nio . IDENT_5 . IDENT_6 . METHOD_3 ( ) . METHOD_4 ( ) ) ) ; class T extends com . github . IDENT_1 . util . IDENT_2 . IDENT_7 < com . github . IDENT_1 . IDENT_3 . IDENT_4 > { @ com . github . IDENT_1 . test . Override public boolean transform ( final com . github . IDENT_1 . util . IDENT_8 is , final com . github . IDENT_1 . util . IDENT_9 IDENT_10 , final com . github . IDENT_1 . IDENT_3 . IDENT_4 o ) throws java . io . IOException { int r = is . METHOD_5 ( ) . read ( ) ; IDENT_10 . METHOD_6 ( ) . write ( ( r + ( count . METHOD_7 ( ) ) ) ) ; return true ; } } int expect = 0 ; for ( int i = 1 ; i <= ( count . get ( ) ) ; i ++ ) { expect += i ; p . METHOD_8 ( new T ( ) ) ; } final com . github . IDENT_1 . util . IDENT_11 IDENT_12 = new com . github . IDENT_1 . util . METHOD_9 ( java . nio . IDENT_5 . IDENT_6 . METHOD_3 ( ) . METHOD_4 ( ) ) ; com . github . IDENT_1 . util . IDENT_2 . METHOD_10 ( p , new java . util . ArrayList < com . github . IDENT_1 . util . IDENT_2 . IDENT_13 > ( ) , IDENT_12 ) ; "<AssertPlaceHolder>" ; } METHOD_11 ( ) { if ( METHOD_12 ( ) ) { com . github . IDENT_1 . exception . IDENT_14 . METHOD_13 ( new java . lang . IllegalStateException ( STRING_0 ) ) ; } try { final java . util . List < com . github . IDENT_1 . util . IDENT_2 . IDENT_15 > IDENT_16 = new java . util . ArrayList < com . github . IDENT_1 . util . IDENT_2 . IDENT_15 > ( IDENT_17 . size ( ) ) ; final java . nio . IDENT_5 . IDENT_6 cs = java . nio . IDENT_5 . IDENT_6 . METHOD_14 ( IDENT_5 ) ; for ( final com . github . IDENT_1 . util . IDENT_8 input : IDENT_17 ) { final com . github . IDENT_1 . util . IDENT_2 . IDENT_15 e = input . METHOD_11 ( ) ; final char [ ] IDENT_18 ; if ( e . METHOD_15 ( ) ) { IDENT_18 = e . METHOD_16 ( ) ; } else { IDENT_18 = com . github . IDENT_1 . util . IDENT_19 . METHOD_17 ( cs , e . METHOD_18 ( ) ) ; } METHOD_19 ( IDENT_18 , 0 , IDENT_18 . length ) ; IDENT_16 . add ( e ) ; } return new com . github . IDENT_1 . util . IDENT_2 . METHOD_20 ( IDENT_16 ) ; } finally { close ( ) ; } }
org . junit . Assert . assertEquals ( expect , IDENT_12 . METHOD_11 ( ) . METHOD_18 ( ) [ 0 ] )