METHOD_0 ( ) { long IDENT_0 = INT_0 ; long IDENT_1 = 1000 ; java . io . File IDENT_2 = org . mockito . Mockito . mock ( java . io . File . class ) ; org . mockito . Mockito . when ( IDENT_2 . length ( ) ) . thenReturn ( IDENT_1 ) ; org . mockito . Mockito . METHOD_1 ( new java . io . IOException ( STRING_0 ) ) . when ( processor ) . METHOD_2 ( ( ( java . io . File ) ( org . mockito . Mockito . any ( ) ) ) ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( IDENT_2 , org . mockito . Mockito . times ( 1 ) ) . length ( ) ; } METHOD_3 ( java . io . InputStream ) { byte [ ] bytes = new byte [ com . cloud . utils . storage . IDENT_3 . IDENT_4 ] ; if ( ( IDENT_5 . METHOD_4 ( com . cloud . utils . storage . IDENT_3 . IDENT_6 ) ) != ( com . cloud . utils . storage . IDENT_3 . IDENT_6 ) ) { throw new java . io . IOException ( STRING_1 ) ; } if ( ( IDENT_5 . read ( bytes ) ) != ( com . cloud . utils . storage . IDENT_3 . IDENT_4 ) ) { throw new java . io . IOException ( STRING_2 ) ; } return com . cloud . utils . IDENT_7 . METHOD_5 ( bytes ) ; }
org . junit . Assert . assertEquals ( IDENT_1 , processor . METHOD_3 ( IDENT_2 ) )