load ( ) { java . lang . String expected = STRING_0 ; IDENT_0 . IDENT_1 . IDENT_2 IDENT_3 = mock ( IDENT_0 . IDENT_1 . IDENT_2 . class ) ; when ( IDENT_3 . METHOD_0 ( ) ) . thenReturn ( new java . io . ByteArrayInputStream ( expected . getBytes ( ) ) ) ; IDENT_0 . IDENT_1 . IDENT_4 IDENT_5 = new IDENT_0 . IDENT_1 . METHOD_1 ( ) ; IDENT_5 . loader = IDENT_3 ; java . lang . String actual = IDENT_5 . load ( ) ; "<AssertPlaceHolder>" ; } load ( ) { java . io . IDENT_6 reader = null ; try { reader = new java . io . METHOD_2 ( loader . METHOD_0 ( ) ) ; java . lang . StringBuilder str = new java . lang . StringBuilder ( ) ; char [ ] buf = new char [ INT_0 ] ; for ( ; ; ) { int len = reader . read ( buf ) ; if ( len == ( - 1 ) ) break ; str . append ( new java . lang . String ( buf , 0 , len ) ) ; } return str . toString ( ) ; } finally { if ( reader != null ) reader . close ( ) ; } }
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( expected ) )