METHOD_0 ( ) { java . io . ByteArrayOutputStream IDENT_0 = new java . io . ByteArrayOutputStream ( ) ; when ( this . IDENT_1 . METHOD_1 ( ) ) . thenReturn ( new java . io . ByteArrayInputStream ( IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 . IDENT_6 . IDENT_7 ) ) ; when ( this . IDENT_8 . METHOD_2 ( ) ) . thenReturn ( IDENT_0 ) ; this . IDENT_9 . run ( ) ; verify ( this . IDENT_10 ) . METHOD_3 ( ) ; verify ( this . IDENT_1 ) . METHOD_4 ( ) ; verify ( this . IDENT_8 ) . METHOD_5 ( ) ; "<AssertPlaceHolder>" ; } run ( ) { try { java . lang . Thread . METHOD_6 ( ) . METHOD_7 ( Thread . IDENT_11 ) ; while ( this . IDENT_12 . get ( ) ) { this . METHOD_8 ( ) ; } this . IDENT_13 . close ( ) ; } catch ( final java . lang . Exception e ) { if ( this . IDENT_12 . get ( ) ) { this . logger . error ( STRING_0 , METHOD_9 ( this . IDENT_14 ) , e ) ; } } finally { this . logger . info ( STRING_1 , METHOD_9 ( this . IDENT_14 ) ) ; } }
org . junit . Assert . assertArrayEquals ( IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 . IDENT_6 . IDENT_7 , IDENT_0 . toByteArray ( ) )