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