METHOD_0 ( ) { IDENT_0 = org . mockito . Mockito . mock ( com . IDENT_1 . IDENT_2 . core . concurrent . IDENT_3 . class ) ; org . mockito . Mockito . METHOD_1 ( ) . when ( IDENT_0 ) . execute ( org . mockito . Mockito . any ( com . IDENT_1 . IDENT_2 . core . IDENT_4 . impl . IDENT_5 . class ) ) ; process = org . mockito . Mockito . mock ( com . IDENT_1 . IDENT_2 . core . IDENT_4 . impl . IDENT_6 . class ) ; java . lang . String IDENT_7 = STRING_0 ; java . io . InputStream stream = new java . io . ByteArrayInputStream ( IDENT_7 . getBytes ( ) ) ; org . mockito . Mockito . when ( process . METHOD_2 ( ) ) . thenReturn ( stream ) ; org . mockito . Mockito . METHOD_1 ( ) . 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_8 = org . mockito . Mockito . mock ( com . IDENT_1 . IDENT_2 . core . IDENT_4 . IDENT_9 . IDENT_10 . class ) ; org . mockito . Mockito . METHOD_1 ( ) . when ( IDENT_8 ) . METHOD_4 ( ) ; IDENT_11 . METHOD_5 ( factory ) ; IDENT_11 . METHOD_6 ( IDENT_8 ) ; IDENT_11 . METHOD_7 ( IDENT_0 ) ; IDENT_12 [ 0 ] = "test" ; long IDENT_13 = 1 ; java . lang . String res = IDENT_11 . METHOD_0 ( IDENT_12 , IDENT_13 ) ; "<AssertPlaceHolder>" ; } METHOD_0 ( java . lang . String [ ] , long ) { java . lang . IDENT_6 process = IDENT_14 . create ( command ) ; if ( ( IDENT_8 ) == null ) { IDENT_8 = new com . IDENT_1 . IDENT_2 . core . IDENT_4 . IDENT_9 . METHOD_8 ( process , IDENT_13 ) ; } IDENT_0 . execute ( IDENT_8 ) ; java . io . InputStream input = process . METHOD_2 ( ) ; try ( java . io . ByteArrayOutputStream out = METHOD_9 ( input ) ) { IDENT_8 . METHOD_4 ( ) ; IDENT_8 = null ; if ( input != null ) { input . close ( ) ; } if ( process != null ) { process . METHOD_3 ( ) ; } java . lang . String IDENT_15 = null ; if ( out != null ) { IDENT_15 = out . toString ( ) ; } return IDENT_15 ; } }
org . junit . Assert . assertEquals ( IDENT_7 , res )