METHOD_0 ( java . lang . String , java . lang . String , java . lang . String ) { java . net . URI uri = javax . ws . rs . core . IDENT_0 . METHOD_1 ( source ) . path ( path ) . build ( ) ; "<AssertPlaceHolder>" ; } create ( javax . servlet . http . IDENT_1 ) { final java . net . URL IDENT_2 = org . IDENT_3 . core . servlet . IDENT_4 . METHOD_2 ( req ) ; java . lang . String host ; int port ; if ( IDENT_2 == null ) { host = req . METHOD_3 ( ) ; port = req . METHOD_4 ( ) ; } else { host = IDENT_2 . METHOD_5 ( ) ; port = IDENT_2 . METHOD_6 ( ) ; if ( port < 0 ) { port = IDENT_2 . METHOD_7 ( ) ; } org . IDENT_3 . core . servlet . IDENT_4 . LOG . debug ( STRING_0 , IDENT_2 ) ; } final java . lang . StringBuilder IDENT_5 = new java . lang . StringBuilder ( ) ; final java . lang . String IDENT_6 = org . IDENT_3 . core . servlet . IDENT_4 . METHOD_8 ( req ) ; IDENT_5 . append ( IDENT_6 ) ; IDENT_5 . append ( STRING_1 ) ; IDENT_5 . append ( host ) ; if ( ! ( ( ( port < 0 ) || ( ( port == INT_0 ) && ( STRING_2 . equals ( IDENT_6 ) ) ) ) || ( ( port == INT_1 ) && ( STRING_3 . equals ( IDENT_6 ) ) ) ) ) { IDENT_5 . append ( STRING_4 ) ; IDENT_5 . append ( port ) ; } final java . lang . String IDENT_7 = IDENT_5 . toString ( ) ; final java . lang . StringBuilder IDENT_8 = new java . lang . StringBuilder ( IDENT_7 ) ; IDENT_8 . append ( req . METHOD_9 ( ) ) ; IDENT_8 . append ( req . METHOD_10 ( ) ) ; final java . net . URI IDENT_9 = java . net . URI . create ( IDENT_8 . toString ( ) ) ; final java . lang . StringBuilder IDENT_10 = new java . lang . StringBuilder ( IDENT_7 ) ; IDENT_10 . append ( req . METHOD_11 ( ) ) ; final java . lang . String IDENT_11 = req . METHOD_12 ( ) ; if ( IDENT_11 != null ) { IDENT_10 . append ( STRING_5 ) ; IDENT_10 . append ( IDENT_11 ) ; } final java . net . URI IDENT_12 = java . net . URI . create ( IDENT_10 . toString ( ) ) ; return new org . IDENT_3 . core . servlet . METHOD_13 ( org . IDENT_3 . core . servlet . METHOD_13 . METHOD_14 ( req ) , IDENT_12 , IDENT_9 , org . IDENT_3 . core . servlet . METHOD_13 . METHOD_15 ( req ) , org . IDENT_3 . core . servlet . METHOD_13 . METHOD_16 ( req ) , org . IDENT_3 . core . servlet . METHOD_13 . METHOD_17 ( req ) ) ; }
org . junit . Assert . assertEquals ( java . net . URI . create ( expected ) , uri )