METHOD_0 ( ) { org . eclipse . IDENT_0 . core . IDENT_1 . IDENT_2 req = org . eclipse . IDENT_0 . core . IDENT_1 . IDENT_2 . METHOD_1 ( ) . METHOD_2 ( STRING_0 ) ; java . lang . String uri = req . METHOD_3 ( ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( ) { java . lang . String host = METHOD_4 ( ) . METHOD_5 ( ) ; if ( host == null ) { if ( ( METHOD_6 ( ) ) != null ) { host = METHOD_6 ( ) . METHOD_7 ( ) ; } else { host = STRING_1 ; } } java . lang . Integer port = METHOD_4 ( ) . METHOD_8 ( ) ; if ( port == null ) { port = METHOD_9 ( ) ; } if ( port > 0 ) { if ( org . eclipse . IDENT_0 . core . IDENT_1 . IDENT_3 . METHOD_10 ( METHOD_11 ( ) ) ) { if ( ( org . eclipse . IDENT_0 . core . IDENT_1 . IDENT_3 . METHOD_12 ( METHOD_11 ( ) ) ) == port ) { port = - 1 ; } } } else { port = - 1 ; } java . lang . String path = "/" + ( METHOD_4 ( ) . METHOD_13 ( ) ) ; java . lang . String query = ( ( METHOD_4 ( ) . METHOD_14 ( ) ) > 0 ) ? METHOD_4 ( ) . METHOD_15 ( ) : null ; try { java . net . URI uri = new java . net . URI ( METHOD_11 ( ) , null , host , port , path , query , null ) ; return uri . METHOD_16 ( ) ; } catch ( java . net . IDENT_4 e ) { throw new java . lang . IllegalStateException ( STRING_2 , e ) ; } }
org . junit . Assert . assertThat ( uri , org . hamcrest . CoreMatchers . is ( STRING_0 ) )