METHOD_0 ( ) { final java . lang . String url = STRING_0 ; new IDENT_0 . METHOD_1 ( ) { { IDENT_1 . METHOD_2 ( ( ( IDENT_2 . IDENT_3 ) ( any ) ) ) ; result = new com . IDENT_4 . METHOD_3 ( ) ; } } ; try { subject . request ( IDENT_5 . Method . IDENT_6 , url , new byte [ ] { } ) ; } catch ( java . lang . Exception e ) { } new IDENT_0 . METHOD_4 ( ) { { IDENT_2 . IDENT_3 request ; IDENT_1 . METHOD_2 ( ( request = METHOD_5 ( ) ) ) ; "<AssertPlaceHolder>" ; } } ; } request ( com . IDENT_4 . IDENT_7 , java . lang . String , IDENT_2 . IDENT_8 ) { IDENT_2 . IDENT_9 url ; if ( IDENT_10 . startsWith ( STRING_1 ) ) { url = IDENT_2 . IDENT_9 . parse ( IDENT_10 ) ; } else { url = IDENT_2 . IDENT_9 . parse ( ( ( com . IDENT_4 . IDENT_5 . IDENT_11 ) + IDENT_10 ) ) ; } for ( short IDENT_12 = com . IDENT_4 . IDENT_5 . IDENT_13 ; IDENT_12 >= 0 ; IDENT_12 OP_0 ) { if ( IDENT_12 < ( com . IDENT_4 . IDENT_5 . IDENT_13 ) ) { try { java . lang . Thread . sleep ( com . IDENT_4 . IDENT_5 . IDENT_14 ) ; } catch ( java . lang . IDENT_15 ex ) { java . lang . Thread . METHOD_6 ( ) . METHOD_7 ( ) ; } } IDENT_2 . IDENT_3 request = new IDENT_2 . IDENT_3 . Builder ( ) . header ( STRING_2 , IDENT_16 ) . header ( STRING_3 , IDENT_17 ) . url ( url ) . method ( method . toString ( ) , body ) . build ( ) ; com . IDENT_4 . IDENT_5 . Response response ; int status ; try { IDENT_2 . Response res = client . METHOD_2 ( request ) . execute ( ) ; status = res . code ( ) ; response = new com . IDENT_4 . IDENT_5 . Response ( res . headers ( ) , res . body ( ) . bytes ( ) ) ; } catch ( com . IDENT_4 . java e ) { if ( IDENT_12 > 0 ) continue ; throw new com . IDENT_4 . METHOD_3 ( ( STRING_4 + ( e . getMessage ( ) ) ) , e ) ; } java . lang . String IDENT_18 = response . headers . get ( STRING_5 ) ; if ( ( IDENT_18 != null ) && ( ! ( IDENT_18 . isEmpty ( ) ) ) ) { com . IDENT_4 . IDENT_19 . METHOD_8 ( java . lang . Integer . valueOf ( IDENT_18 ) ) ; } if ( ( status >= 200 ) && ( status < INT_0 ) ) { return response ; } java . lang . Exception . IDENT_20 data ; com . google . gson . IDENT_21 gson = new com . google . gson . METHOD_9 ( ) ; try { data = gson . METHOD_10 ( new java . lang . String ( response . body ) , Exception . IDENT_20 . class ) ; if ( data == null ) { data = new java . lang . Exception . METHOD_11 ( ) ; data . METHOD_12 ( STRING_6 ) ; data . METHOD_13 ( STRING_7 ) ; } } catch ( com . IDENT_4 . com . google e ) { data = new java . lang . Exception . METHOD_11 ( ) ; data . METHOD_12 ( ( STRING_8 + ( e . getMessage ( ) ) ) ) ; data . METHOD_13 ( STRING_7 ) ; } if ( ( IDENT_12 > 0 ) && ( status >= INT_1 ) ) continue ; throw java . lang . Exception . create ( data . getMessage ( ) , data . METHOD_14 ( ) , status ) ; } return null ; }
org . junit . Assert . assertEquals ( url , request . url ( ) . toString ( ) )