METHOD_0 ( ) { final byte [ ] IDENT_0 = STRING_0 . getBytes ( org . apache . calcite . IDENT_1 . remote . UTF_8 ) ; final org . apache . http . client . methods . IDENT_2 IDENT_3 = mock ( org . apache . http . client . methods . IDENT_2 . class ) ; final org . apache . http . client . methods . IDENT_2 IDENT_4 = mock ( org . apache . http . client . methods . IDENT_2 . class ) ; final org . apache . http . IDENT_5 IDENT_6 = mock ( org . apache . http . IDENT_5 . class ) ; final org . apache . http . IDENT_5 IDENT_7 = mock ( org . apache . http . IDENT_5 . class ) ; final org . apache . http . entity . IDENT_8 IDENT_9 = new org . apache . http . entity . METHOD_1 ( STRING_1 ) ; final org . mockito . IDENT_10 . IDENT_11 < org . apache . http . client . methods . IDENT_2 > IDENT_12 = new org . mockito . IDENT_10 . IDENT_11 < org . apache . http . client . methods . IDENT_2 > ( ) { MOD_0 int IDENT_13 = 0 ; @ org . apache . calcite . IDENT_1 . remote . Override public org . apache . http . client . methods . IDENT_2 METHOD_2 ( org . mockito . IDENT_14 . IDENT_15 IDENT_14 ) throws java . lang . Throwable { ( IDENT_13 ) ++ ; if ( 1 == ( IDENT_13 ) ) { throw new org . apache . http . METHOD_3 ( STRING_2 ) ; } else { return IDENT_4 ; } } } ; final org . apache . calcite . IDENT_1 . remote . IDENT_16 client = mock ( org . apache . calcite . IDENT_1 . remote . IDENT_16 . class ) ; when ( client . METHOD_4 ( any ( byte [ ] . class ) ) ) . METHOD_5 ( ) ; when ( client . execute ( any ( org . apache . http . client . methods . IDENT_17 . class ) , any ( org . apache . http . client . protocol . IDENT_18 . class ) ) ) . METHOD_6 ( IDENT_12 ) ; when ( IDENT_3 . METHOD_7 ( ) ) . thenReturn ( IDENT_6 ) ; when ( IDENT_6 . getStatusCode ( ) ) . thenReturn ( IDENT_19 . IDENT_20 ) ; when ( IDENT_4 . METHOD_7 ( ) ) . thenReturn ( IDENT_7 ) ; when ( IDENT_7 . getStatusCode ( ) ) . thenReturn ( IDENT_19 . IDENT_21 ) ; when ( IDENT_4 . METHOD_8 ( ) ) . thenReturn ( IDENT_9 ) ; byte [ ] IDENT_22 = client . METHOD_4 ( IDENT_0 ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( byte [ ] ) { org . apache . calcite . IDENT_1 . remote . IDENT_23 client = IDENT_24 . get ( r . METHOD_9 ( IDENT_24 . size ( ) ) ) ; return client . METHOD_4 ( request ) ; }
org . junit . Assert . assertEquals ( STRING_1 , new java . lang . String ( IDENT_22 , UTF_8 ) )