METHOD_0 ( ) { process = org . mockito . Mockito . mock ( com . IDENT_0 . IDENT_1 . core . IDENT_2 . impl . IDENT_3 . class ) ; java . lang . String IDENT_4 = STRING_0 ; java . io . InputStream stream = new java . io . ByteArrayInputStream ( IDENT_4 . getBytes ( ) ) ; org . mockito . Mockito . when ( process . METHOD_1 ( ) ) . thenReturn ( stream ) ; org . mockito . Mockito . METHOD_2 ( ) . when ( process ) . METHOD_3 ( ) ; org . mockito . Mockito . when ( factory . create ( org . mockito . Mockito . any ( java . lang . String [ ] . class ) ) ) . thenReturn ( process ) ; org . mockito . Mockito . when ( factory . create ( org . mockito . Mockito . anyString ( ) ) ) . thenReturn ( process ) ; IDENT_5 . METHOD_4 ( factory ) ; java . lang . String res = IDENT_5 . METHOD_5 ( "test" ) ; "<AssertPlaceHolder>" ; } METHOD_5 ( java . lang . String ) { java . io . ByteArrayOutputStream data = this . run ( command ) ; java . lang . String out = "" ; if ( data != null ) { out = data . toString ( ) ; data . close ( ) ; return out ; } return null ; }
org . junit . Assert . assertEquals ( IDENT_4 , res )