METHOD_0 ( ) { javax . servlet . http . IDENT_0 request = org . mockito . Mockito . mock ( javax . servlet . http . IDENT_0 . class ) ; org . apache . IDENT_1 . plugin . util . IDENT_2 filter = new org . apache . IDENT_1 . plugin . util . METHOD_1 ( ) ; filter . METHOD_2 ( METHOD_1 . IDENT_3 , STRING_0 ) ; filter . METHOD_2 ( METHOD_1 . IDENT_4 , STRING_1 ) ; org . mockito . Mockito . when ( IDENT_5 . METHOD_3 ( request , IDENT_6 . IDENT_7 ) ) . thenReturn ( filter ) ; java . util . List < org . apache . IDENT_1 . plugin . model . IDENT_8 > IDENT_9 = new java . util . ArrayList < org . apache . IDENT_1 . plugin . model . IDENT_8 > ( ) ; org . apache . IDENT_1 . plugin . model . IDENT_8 IDENT_10 = METHOD_4 ( ) ; IDENT_9 . add ( IDENT_10 ) ; org . apache . IDENT_1 . plugin . store . IDENT_11 < org . apache . IDENT_1 . plugin . model . IDENT_8 > IDENT_12 = new org . apache . IDENT_1 . plugin . store . IDENT_11 < org . apache . IDENT_1 . plugin . model . IDENT_8 > ( ) ; IDENT_12 . METHOD_5 ( 0 ) ; IDENT_12 . METHOD_6 ( 1 ) ; IDENT_12 . METHOD_7 ( STRING_2 ) ; IDENT_12 . METHOD_8 ( "1" ) ; IDENT_12 . METHOD_9 ( 0 ) ; IDENT_12 . METHOD_10 ( 10 ) ; IDENT_12 . METHOD_11 ( IDENT_9 ) ; org . mockito . Mockito . when ( IDENT_13 . METHOD_12 ( IDENT_14 . IDENT_15 ) ) . thenReturn ( true ) ; org . mockito . Mockito . when ( IDENT_16 . METHOD_13 ( filter ) ) . thenReturn ( IDENT_12 ) ; org . apache . IDENT_1 . view . IDENT_17 IDENT_18 = IDENT_19 . METHOD_14 ( request ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( IDENT_5 ) . METHOD_3 ( request , IDENT_6 . IDENT_7 ) ; org . mockito . Mockito . verify ( IDENT_16 ) . METHOD_13 ( filter ) ; } METHOD_14 ( javax . servlet . http . IDENT_0 ) { if ( org . apache . IDENT_1 . rest . IDENT_20 . LOG . METHOD_15 ( ) ) { org . apache . IDENT_1 . rest . IDENT_20 . LOG . debug ( STRING_3 ) ; } if ( ! ( IDENT_13 . METHOD_12 ( IDENT_14 . IDENT_15 ) ) ) { throw IDENT_21 . METHOD_16 ( IDENT_22 . IDENT_23 , ( ( STRING_4 + ( org . apache . IDENT_1 . common . IDENT_14 . IDENT_15 ) ) + STRING_5 ) , true ) ; } org . apache . IDENT_1 . view . IDENT_17 ret = null ; org . apache . IDENT_1 . plugin . util . IDENT_24 IDENT_25 = null ; org . apache . IDENT_1 . plugin . store . IDENT_11 < org . apache . IDENT_1 . plugin . model . IDENT_8 > IDENT_26 = null ; org . apache . IDENT_1 . plugin . util . METHOD_1 filter = IDENT_5 . METHOD_3 ( request , IDENT_6 . IDENT_7 ) ; java . lang . String IDENT_27 = null ; IDENT_27 = request . METHOD_17 ( STRING_6 ) ; if ( IDENT_27 != null ) filter . METHOD_2 ( STRING_6 , IDENT_27 ) ; try { if ( org . apache . IDENT_1 . plugin . util . IDENT_24 . METHOD_18 ( org . apache . IDENT_1 . rest . IDENT_20 . IDENT_28 ) ) { IDENT_25 = org . apache . IDENT_1 . plugin . util . IDENT_24 . METHOD_19 ( org . apache . IDENT_1 . rest . IDENT_20 . IDENT_28 , STRING_7 ) ; } IDENT_26 = IDENT_16 . METHOD_13 ( filter ) ; if ( IDENT_26 != null ) { ret = new org . apache . IDENT_1 . view . METHOD_20 ( ) ; ret . METHOD_21 ( IDENT_26 . METHOD_22 ( ) ) ; ret . METHOD_5 ( IDENT_26 . METHOD_23 ( ) ) ; ret . METHOD_6 ( IDENT_26 . METHOD_24 ( ) ) ; ret . METHOD_9 ( IDENT_26 . METHOD_25 ( ) ) ; ret . METHOD_10 ( IDENT_26 . METHOD_26 ( ) ) ; ret . METHOD_7 ( IDENT_26 . METHOD_27 ( ) ) ; ret . METHOD_8 ( IDENT_26 . METHOD_28 ( ) ) ; } } catch ( javax . ws . rs . IDENT_29 IDENT_30 ) { throw IDENT_30 ; } catch ( java . lang . Throwable IDENT_30 ) { org . apache . IDENT_1 . rest . IDENT_20 . LOG . error ( STRING_8 , IDENT_30 ) ; throw IDENT_21 . METHOD_16 ( IDENT_30 . getMessage ( ) ) ; } finally { org . apache . IDENT_1 . plugin . util . IDENT_24 . log ( IDENT_25 ) ; } if ( org . apache . IDENT_1 . rest . IDENT_20 . LOG . METHOD_15 ( ) ) { org . apache . IDENT_1 . rest . IDENT_20 . LOG . debug ( ( STRING_9 + ( ret == null ? 0 : ret . METHOD_29 ( ) ) ) ) ; } return ret ; }
org . junit . Assert . assertNotNull ( IDENT_18 )