METHOD_0 ( ) { class IDENT_0 extends java . io . InputStream { int IDENT_1 = 10 ; @ IDENT_2 . amazon . IDENT_3 . impl . Override public int read ( ) throws java . io . IOException { throw new java . lang . METHOD_1 ( ) ; } @ IDENT_2 . amazon . IDENT_3 . impl . Override public int read ( byte [ ] b , int IDENT_4 , int len ) throws java . io . IOException { if ( ( IDENT_1 ) == 0 ) { throw new java . lang . METHOD_2 ( STRING_0 ) ; } int IDENT_5 = len ; if ( IDENT_5 > ( IDENT_1 ) ) { IDENT_5 = IDENT_1 ; } for ( int i = IDENT_4 ; i < ( IDENT_4 + IDENT_5 ) ; i ++ ) { b [ i ] = ( ( byte ) ( 255 ) ) ; } IDENT_1 OP_0 IDENT_5 ; return IDENT_5 ; } } IDENT_0 is = new METHOD_3 ( ) ; IDENT_2 . amazon . IDENT_3 . impl . IDENT_6 IDENT_7 = IDENT_2 . amazon . IDENT_3 . impl . IDENT_6 . METHOD_4 ( is ) ; byte [ ] expected = new byte [ 10 ] ; java . util . Arrays . METHOD_5 ( expected , ( ( byte ) ( 255 ) ) ) ; byte [ ] actual = new byte [ 10 ] ; int read = IDENT_7 . read ( actual , 0 , actual . length ) ; "<AssertPlaceHolder>" ; } read ( char [ ] , int , int ) { assert len >= 0 ; assert IDENT_4 >= 0 ; int IDENT_8 = 0 ; final int IDENT_9 = IDENT_4 + len ; for ( int index = IDENT_4 ; index < IDENT_9 ; index ++ ) { int IDENT_10 = read ( ) ; if ( IDENT_10 == ( - 1 ) ) { break ; } IDENT_11 [ index ] = ( ( char ) ( IDENT_10 ) ) ; IDENT_8 ++ ; } return IDENT_8 == 0 ? - 1 : IDENT_8 ; }
org . junit . Assert . assertArrayEquals ( expected , actual )