METHOD_0 ( ) { java . io . IDENT_0 IDENT_1 = org . mockito . Mockito . mock ( java . io . IDENT_0 . class ) ; org . mockito . Mockito . when ( IDENT_1 . METHOD_1 ( ) ) . thenReturn ( STRING_0 ) . thenReturn ( STRING_1 ) . thenReturn ( null ) ; java . lang . String [ ] IDENT_2 = IDENT_3 . METHOD_2 ( IDENT_1 ) ; int count = IDENT_2 . length ; "<AssertPlaceHolder>" ; } METHOD_2 ( java . io . IDENT_0 ) { java . util . List < java . lang . String > list = new java . util . ArrayList < java . lang . String > ( ) ; java . lang . String line ; try { while ( ( line = reader . METHOD_1 ( ) ) != null ) { list . add ( line ) ; } } catch ( java . io . IOException e ) { com . IDENT_4 . IDENT_5 . core . IDENT_6 . impl . IDENT_7 . LOGGER . error ( STRING_2 , e ) ; } java . lang . String [ ] IDENT_8 = list . toArray ( new java . lang . String [ list . size ( ) ] ) ; return IDENT_8 ; }
org . junit . Assert . assertEquals ( 2 , count )