METHOD_0 ( ) { javax . servlet . http . IDENT_0 IDENT_1 = METHOD_1 ( javax . servlet . http . IDENT_0 . class ) ; expect ( IDENT_1 . METHOD_2 ( anyString ( ) ) ) . andReturn ( null ) . times ( 5 ) ; expect ( IDENT_1 . METHOD_3 ( ) ) . andReturn ( org . apache . ambari . server . utils . IDENT_2 . IDENT_3 ) ; METHOD_4 ( ) ; java . lang . String IDENT_4 = org . apache . ambari . server . utils . IDENT_5 . METHOD_5 ( IDENT_1 ) ; "<AssertPlaceHolder>" ; METHOD_6 ( ) ; } METHOD_5 ( javax . servlet . http . IDENT_0 ) { java . lang . String IDENT_6 = null ; for ( java . lang . String header : org . apache . ambari . server . utils . IDENT_5 . IDENT_7 ) { IDENT_6 = request . METHOD_2 ( header ) ; if ( ! ( org . apache . ambari . server . utils . IDENT_5 . METHOD_7 ( IDENT_6 ) ) ) { break ; } } if ( org . apache . ambari . server . utils . IDENT_5 . METHOD_7 ( IDENT_6 ) ) { IDENT_6 = request . METHOD_3 ( ) ; } if ( org . apache . ambari . server . utils . IDENT_5 . METHOD_8 ( IDENT_6 ) ) { IDENT_6 = IDENT_6 . substring ( 0 , IDENT_6 . indexOf ( STRING_0 ) ) ; } return IDENT_6 ; }
org . junit . Assert . assertEquals ( org . apache . ambari . server . utils . IDENT_2 . IDENT_3 , IDENT_4 )