METHOD_0 ( ) { javax . servlet . http . IDENT_0 request = org . mockito . Mockito . mock ( javax . servlet . http . IDENT_0 . class ) ; java . lang . String IDENT_1 = new java . util . Date ( ) . toString ( ) ; java . lang . String IDENT_2 = STRING_0 ; java . util . Set < java . lang . String > IDENT_3 = new java . util . HashSet < java . lang . String > ( ) ; IDENT_3 . add ( STRING_1 ) ; IDENT_3 . add ( STRING_2 ) ; org . mockito . Mockito . when ( request . METHOD_1 ( STRING_3 ) ) . thenReturn ( IDENT_1 ) ; org . mockito . Mockito . when ( request . METHOD_1 ( STRING_4 ) ) . thenReturn ( "1" ) ; org . mockito . Mockito . when ( request . METHOD_1 ( STRING_5 ) ) . thenReturn ( "1" ) ; org . apache . IDENT_4 . plugin . model . IDENT_5 policy = new org . apache . IDENT_4 . plugin . model . METHOD_2 ( ) ; java . util . Map < java . lang . String , org . apache . IDENT_4 . plugin . model . METHOD_2 . IDENT_6 > resources = new java . util . HashMap < java . lang . String , org . apache . IDENT_4 . plugin . model . METHOD_2 . IDENT_6 > ( ) ; policy . METHOD_3 ( STRING_6 ) ; policy . METHOD_4 ( resources ) ; org . mockito . Mockito . when ( IDENT_7 . METHOD_5 ( IDENT_1 , 1L ) ) . thenReturn ( policy ) ; org . mockito . Mockito . when ( IDENT_8 . METHOD_6 ( ) ) . thenReturn ( false ) ; org . mockito . Mockito . when ( IDENT_8 . METHOD_7 ( ) ) . thenReturn ( IDENT_2 ) ; org . mockito . Mockito . when ( IDENT_9 . METHOD_8 ( org . mockito . Mockito . METHOD_9 ( ) , org . mockito . Mockito . anyString ( ) , org . mockito . Mockito . METHOD_10 ( ) ) ) . METHOD_11 ( new javax . ws . rs . METHOD_12 ( ) ) ; IDENT_10 . expect ( javax . ws . rs . METHOD_12 . class ) ; org . apache . IDENT_4 . plugin . model . METHOD_2 IDENT_11 = IDENT_12 . METHOD_5 ( request ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( request ) . METHOD_1 ( STRING_3 ) ; org . mockito . Mockito . verify ( request ) . METHOD_1 ( STRING_4 ) ; org . mockito . Mockito . verify ( request ) . METHOD_1 ( STRING_5 ) ; } METHOD_5 ( javax . servlet . http . IDENT_0 ) { if ( org . apache . IDENT_4 . rest . IDENT_13 . LOG . METHOD_13 ( ) ) { org . apache . IDENT_4 . rest . IDENT_13 . LOG . debug ( STRING_7 ) ; } java . lang . String IDENT_14 = request . METHOD_1 ( STRING_3 ) ; java . lang . String IDENT_15 = request . METHOD_1 ( STRING_4 ) ; java . lang . String IDENT_16 = request . METHOD_1 ( STRING_5 ) ; if ( ( org . apache . commons . lang . StringUtils . isEmpty ( IDENT_14 ) ) || ( org . apache . commons . lang . StringUtils . isEmpty ( IDENT_15 ) ) ) { throw IDENT_9 . METHOD_8 ( STRING_8 , IDENT_17 . IDENT_18 ) ; } java . lang . Long IDENT_19 = java . lang . Long . METHOD_14 ( IDENT_15 ) ; org . apache . IDENT_4 . plugin . model . METHOD_2 policy = null ; if ( ! ( org . apache . IDENT_4 . authorization . utils . IDENT_20 . isEmpty ( IDENT_16 ) ) ) { int IDENT_21 = java . lang . Integer . METHOD_15 ( IDENT_16 ) ; try { policy = IDENT_7 . METHOD_16 ( IDENT_19 , IDENT_21 ) ; if ( policy != null ) { METHOD_17 ( policy ) ; } } catch ( javax . ws . rs . METHOD_12 IDENT_22 ) { throw IDENT_22 ; } catch ( java . lang . Throwable IDENT_22 ) { } } if ( policy == null ) { try { policy = IDENT_7 . METHOD_5 ( IDENT_14 , IDENT_19 ) ; if ( policy != null ) { METHOD_17 ( policy ) ; } } catch ( javax . ws . rs . METHOD_12 IDENT_22 ) { throw IDENT_22 ; } catch ( java . lang . Throwable IDENT_22 ) { org . apache . IDENT_4 . rest . IDENT_13 . LOG . error ( ( ( STRING_9 + IDENT_19 ) + STRING_10 ) , IDENT_22 ) ; throw IDENT_9 . METHOD_8 ( IDENT_22 . getMessage ( ) ) ; } } if ( policy == null ) { throw IDENT_9 . METHOD_8 ( IDENT_23 . IDENT_24 , STRING_11 , true ) ; } if ( org . apache . IDENT_4 . rest . IDENT_13 . LOG . METHOD_13 ( ) ) { org . apache . IDENT_4 . rest . IDENT_13 . LOG . debug ( ( ( ( STRING_12 0 + IDENT_19 ) + STRING_12 ) + policy ) ) ; } if ( org . apache . IDENT_4 . rest . IDENT_13 . LOG . METHOD_13 ( ) ) { org . apache . IDENT_4 . rest . IDENT_13 . LOG . debug ( STRING_13 ) ; } return policy ; }
org . junit . Assert . assertNull ( IDENT_11 )