METHOD_0 ( ) { java . lang . String IDENT_0 = STRING_0 ; javax . servlet . http . IDENT_1 request = mock ( javax . servlet . http . IDENT_1 . class ) ; when ( request . METHOD_1 ( STRING_1 ) ) . thenReturn ( ( ( STRING_2 + IDENT_0 ) + STRING_3 ) ) ; java . lang . String result = org . nuxeo . ecm . IDENT_2 . resource . IDENT_3 . METHOD_2 ( STRING_1 , request ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( java . lang . String , javax . servlet . http . IDENT_1 ) { java . lang . String header = request . METHOD_1 ( IDENT_4 ) ; if ( header == null ) { return null ; } java . lang . String token = header . trim ( ) ; int IDENT_5 = token . indexOf ( STRING_2 ) ; token = token . substring ( ( IDENT_5 + ( STRING_2 . length ( ) ) ) , token . length ( ) ) ; int IDENT_6 = token . indexOf ( STRING_3 ) ; token = token . substring ( 0 , IDENT_6 ) ; return token ; }
org . junit . Assert . assertThat ( result , org . hamcrest . core . Is . is ( IDENT_0 ) )