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 ) ; IDENT_5 . METHOD_4 ( factory ) ; IDENT_6 [ 0 ] = "test" ; java . lang . String res = IDENT_5 . METHOD_5 ( IDENT_6 ) ; "<AssertPlaceHolder>" ; } METHOD_5 ( java . lang . String [ ] ) { java . lang . IDENT_3 process = IDENT_7 . create ( command ) ; java . io . InputStream input = process . METHOD_1 ( ) ; try ( java . io . ByteArrayOutputStream out = METHOD_6 ( input ) ) { if ( input != null ) { input . close ( ) ; } if ( process != null ) { process . METHOD_3 ( ) ; } java . lang . String IDENT_8 = null ; if ( out != null ) { IDENT_8 = out . toString ( ) ; } return IDENT_8 ; } }
org . junit . Assert . assertEquals ( IDENT_4 , res )