METHOD_0 ( ) { when ( config . containsKey ( eq ( this . IDENT_0 ) ) ) . thenReturn ( true ) ; when ( config . getString ( eq ( this . IDENT_0 ) ) ) . thenReturn ( STRING_0 ) ; IDENT_1 = org . jboss . IDENT_2 . mock . IDENT_3 . get ( STRING_1 ) ; when ( IDENT_4 . METHOD_1 ( ) ) . thenReturn ( IDENT_1 . METHOD_2 ( ) ) ; when ( IDENT_5 . METHOD_3 ( ) ) . thenReturn ( STRING_2 ) ; interceptor = new org . IDENT_6 . common . IDENT_2 . filter . METHOD_4 ( config , IDENT_0 ) ; javax . ws . rs . core . IDENT_7 builder = interceptor . METHOD_5 ( IDENT_4 ) ; "<AssertPlaceHolder>" ; } METHOD_5 ( javax . ws . rs . container . IDENT_8 ) { if ( ( config . containsKey ( this . IDENT_0 ) ) && ( ! ( "" . equals ( config . getString ( this . IDENT_0 ) ) ) ) ) { javax . servlet . IDENT_9 IDENT_10 = org . jboss . IDENT_2 . spi . IDENT_11 . METHOD_6 ( javax . servlet . IDENT_9 . class ) ; IDENT_12 = IDENT_10 . METHOD_3 ( ) ; java . lang . StringBuffer url = new java . lang . StringBuffer ( config . getString ( this . IDENT_0 ) ) ; if ( ( url . indexOf ( STRING_3 ) ) == ( - 1 ) ) { url = new java . lang . StringBuffer ( STRING_4 ) . append ( url ) ; } java . lang . String IDENT_13 = IDENT_14 . METHOD_1 ( ) . METHOD_7 ( ) . toString ( ) ; int offset = IDENT_13 . METHOD_8 ( IDENT_12 ) ; if ( offset >= 0 ) { url . append ( IDENT_13 . substring ( ( offset + ( IDENT_12 . length ( ) ) ) ) ) ; } else { org . IDENT_6 . common . IDENT_2 . filter . METHOD_4 . log . warn ( STRING_5 , IDENT_13 ) ; return null ; } try { javax . ws . rs . core . IDENT_7 builder = javax . ws . rs . core . IDENT_7 . METHOD_9 ( url . toString ( ) ) ; return builder ; } catch ( java . lang . IllegalArgumentException e ) { org . IDENT_6 . common . IDENT_2 . filter . METHOD_4 . log . warn ( STRING_6 , url , e ) ; return null ; } } else { return IDENT_14 . METHOD_1 ( ) . METHOD_10 ( ) ; } }
org . junit . Assert . assertNull ( builder )