METHOD_0 ( ) { java . lang . String IDENT_0 = STRING_0 ; java . lang . String IDENT_1 = STRING_1 ; org . mockito . Mockito . when ( client . METHOD_1 ( org . mockito . Mockito . anyString ( ) , org . mockito . Mockito . eq ( IDENT_1 ) ) ) . thenReturn ( IDENT_1 ) ; server . METHOD_2 ( IDENT_0 , IDENT_1 ) ; org . mockito . IDENT_2 < java . lang . String > IDENT_3 = org . mockito . IDENT_2 . METHOD_3 ( java . lang . String . class ) ; org . mockito . Mockito . verify ( client ) . METHOD_1 ( org . mockito . Mockito . eq ( STRING_2 ) , IDENT_3 . METHOD_4 ( ) ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . lang . String , java . lang . String ) { org . apache . http . client . methods . IDENT_4 request = new org . apache . http . client . methods . METHOD_5 ( api ( path ) ) ; if ( IDENT_5 != null ) { request . METHOD_6 ( new org . apache . http . entity . METHOD_7 ( IDENT_5 , org . apache . http . entity . IDENT_6 . IDENT_7 ) ) ; } org . apache . http . IDENT_8 response = client . execute ( request , IDENT_9 ) ; int status = response . METHOD_8 ( ) . getStatusCode ( ) ; if ( ( status < 200 ) || ( status >= INT_0 ) ) { throw new org . apache . http . client . METHOD_9 ( status , response . METHOD_8 ( ) . METHOD_10 ( ) ) ; } try { java . io . InputStream content = response . METHOD_11 ( ) . METHOD_12 ( ) ; java . util . IDENT_10 s = new java . util . METHOD_13 ( content , com . IDENT_11 . jenkins . client . IDENT_12 . IDENT_13 ) ; java . lang . StringBuffer sb = new java . lang . StringBuffer ( ) ; while ( s . hasNext ( ) ) { sb . append ( s . next ( ) ) ; } return sb . toString ( ) ; } finally { org . apache . http . util . IDENT_14 . METHOD_14 ( response . METHOD_11 ( ) ) ; } }
org . junit . Assert . assertEquals ( IDENT_1 , IDENT_3 . getValue ( ) )