METHOD_0 ( ) { org . apache . IDENT_0 . plugin . model . IDENT_1 policy = METHOD_1 ( org . apache . IDENT_0 . rest . IDENT_2 . IDENT_3 ) ; org . apache . IDENT_0 . plugin . model . IDENT_4 service = METHOD_2 ( org . apache . IDENT_0 . rest . IDENT_2 . IDENT_3 ) ; org . apache . IDENT_0 . view . IDENT_5 IDENT_6 = METHOD_3 ( policy , service ) ; org . apache . IDENT_0 . plugin . util . IDENT_7 IDENT_8 = new org . apache . IDENT_0 . plugin . util . METHOD_4 ( ) ; IDENT_8 . METHOD_5 ( null ) ; IDENT_8 . METHOD_6 ( true ) ; IDENT_8 . METHOD_7 ( true ) ; IDENT_8 . METHOD_8 ( STRING_0 ) ; IDENT_8 . METHOD_9 ( true ) ; org . apache . IDENT_0 . admin . client . IDENT_9 . IDENT_10 response = org . mockito . Mockito . mock ( org . apache . IDENT_0 . admin . client . IDENT_9 . IDENT_10 . class ) ; org . mockito . Mockito . when ( IDENT_11 . METHOD_10 ( METHOD_3 ) ) . thenReturn ( IDENT_8 ) ; try { org . mockito . Mockito . when ( IDENT_12 . METHOD_11 ( METHOD_3 . METHOD_12 ( ) , IDENT_8 , request ) ) . thenReturn ( response ) ; } catch ( java . lang . Exception e ) { org . junit . Assert . fail ( ( STRING_1 + ( e . getMessage ( ) ) ) ) ; } org . apache . IDENT_0 . view . IDENT_5 IDENT_13 = IDENT_14 . METHOD_13 ( request , METHOD_3 ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( IDENT_11 ) . METHOD_10 ( METHOD_3 ) ; try { org . mockito . Mockito . verify ( IDENT_12 ) . METHOD_11 ( METHOD_3 . METHOD_12 ( ) , IDENT_8 , request ) ; } catch ( java . lang . Exception e ) { org . junit . Assert . fail ( ( STRING_1 + ( e . getMessage ( ) ) ) ) ; } } METHOD_13 ( javax . servlet . http . IDENT_15 , org . apache . IDENT_0 . rest . IDENT_5 ) { org . apache . IDENT_0 . admin . client . IDENT_9 . IDENT_10 ret = null ; if ( org . apache . IDENT_0 . rest . IDENT_16 . logger . METHOD_14 ( ) ) { org . apache . IDENT_0 . rest . IDENT_16 . logger . debug ( ( ( STRING_2 + METHOD_3 ) + STRING_3 ) ) ; } if ( METHOD_3 != null ) { java . lang . String IDENT_17 = METHOD_3 . METHOD_12 ( ) ; org . apache . IDENT_0 . plugin . util . METHOD_4 IDENT_18 = IDENT_11 . METHOD_10 ( METHOD_3 ) ; try { ret = IDENT_12 . METHOD_11 ( IDENT_17 , IDENT_18 , request ) ; } catch ( javax . ws . rs . IDENT_19 IDENT_20 ) { throw IDENT_20 ; } catch ( java . lang . Throwable e ) { org . apache . IDENT_0 . rest . IDENT_16 . logger . error ( ( ( ( javax . servlet . http . IDENT_21 . IDENT_22 ) + STRING_4 ) + METHOD_3 ) , e ) ; throw IDENT_23 . METHOD_15 ( ( ( ( STRING_5 + METHOD_3 ) + STRING_6 ) + ( e . getMessage ( ) ) ) ) ; } } else { org . apache . IDENT_0 . rest . IDENT_16 . logger . error ( ( ( javax . servlet . http . IDENT_21 . IDENT_22 ) + STRING_7 ) ) ; throw IDENT_23 . METHOD_15 ( STRING_7 ) ; } if ( org . apache . IDENT_0 . rest . IDENT_16 . logger . METHOD_14 ( ) ) { org . apache . IDENT_0 . rest . IDENT_16 . logger . debug ( ( ( STRING_8 + ret ) + STRING_3 ) ) ; } return METHOD_3 ; }
org . junit . Assert . assertEquals ( METHOD_3 , IDENT_13 )