METHOD_0 ( ) { java . lang . String output = METHOD_1 ( this :: IDENT_0 ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . util . function . IDENT_1 ) { java . io . ByteArrayOutputStream IDENT_2 = new java . io . ByteArrayOutputStream ( ) ; java . io . IDENT_3 IDENT_4 = null ; try { IDENT_4 = new java . io . METHOD_2 ( IDENT_2 ) ; java . util . function . IDENT_1 < java . lang . String > println = IDENT_4 :: println ; IDENT_5 . accept ( println ) ; IDENT_4 . METHOD_3 ( ) ; } finally { if ( IDENT_4 != null ) { IDENT_4 . close ( ) ; } } return IDENT_2 . toString ( ) . replaceAll ( STRING_0 , "\n" ) ; }
org . junit . Assert . assertEquals ( expected , output )