METHOD_0 ( ) { java . net . URL url = new java . net . URL ( STRING_0 ) ; org . IDENT_0 . api . mockito . IDENT_1 . METHOD_1 ( com . IDENT_2 . http . IDENT_3 . IDENT_4 . class ) ; org . mockito . IDENT_5 . METHOD_2 ( com . IDENT_2 . http . IDENT_3 . IDENT_4 . METHOD_3 ( anyString ( ) , ( ( java . lang . String ) ( METHOD_4 ( ) ) ) , ( ( java . lang . String ) ( METHOD_4 ( ) ) ) ) ) . METHOD_5 ( true ) ; java . net . IDENT_6 IDENT_7 = mock ( java . net . IDENT_6 . class ) ; org . mockito . IDENT_5 . METHOD_2 ( com . IDENT_2 . http . IDENT_3 . IDENT_4 . METHOD_6 ( ( ( java . lang . String ) ( METHOD_4 ( ) ) ) , ( ( java . lang . String ) ( METHOD_4 ( ) ) ) , any ( com . IDENT_2 . http . IDENT_3 . IDENT_8 . class ) ) ) . METHOD_5 ( IDENT_7 ) ; com . IDENT_2 . http . IDENT_3 . IDENT_9 config = mock ( com . IDENT_2 . http . IDENT_3 . IDENT_9 . class ) ; com . IDENT_2 . http . IDENT_3 . IDENT_10 client = new com . IDENT_2 . http . IDENT_3 . METHOD_7 ( config ) ; java . net . IDENT_6 proxy = org . IDENT_0 . reflect . IDENT_11 . METHOD_8 ( client , STRING_1 , url , mock ( com . IDENT_2 . http . IDENT_3 . IDENT_8 . class ) ) ; "<AssertPlaceHolder>" ; } METHOD_6 ( java . lang . String , java . lang . String , com . IDENT_2 . http . IDENT_8 ) { java . net . IDENT_6 proxy = java . net . IDENT_6 . IDENT_12 ; try { java . lang . String IDENT_13 = ( ! ( com . IDENT_2 . utils . StringUtils . isEmpty ( IDENT_14 ) ) ) ? IDENT_14 : IDENT_15 ; if ( com . IDENT_2 . utils . StringUtils . isEmpty ( IDENT_13 ) ) { return proxy ; } java . net . URL IDENT_16 = new java . net . URL ( IDENT_13 ) ; java . lang . String IDENT_17 = IDENT_16 . METHOD_9 ( ) ; if ( IDENT_17 != null ) { byte [ ] bytes = IDENT_17 . getBytes ( STRING_2 ) ; java . lang . String auth = javax . xml . IDENT_18 . IDENT_19 . METHOD_10 ( bytes ) ; request . METHOD_11 ( STRING_3 , ( STRING_4 + auth ) ) ; } java . lang . String IDENT_20 = IDENT_16 . METHOD_12 ( ) ; int port = IDENT_16 . METHOD_13 ( ) ; if ( port == ( - 1 ) ) { port = IDENT_16 . METHOD_14 ( ) ; } java . net . IDENT_21 IDENT_22 = new java . net . METHOD_15 ( IDENT_20 , port ) ; proxy = new java . net . METHOD_16 ( METHOD_16 . Type . IDENT_23 , IDENT_22 ) ; } catch ( java . io . IOException e ) { throw new com . IDENT_2 . exceptions . METHOD_17 ( STRING_5 , STRING_6 ) ; } return proxy ; }
org . junit . Assert . assertEquals ( IDENT_7 , proxy )