METHOD_0 ( ) { javax . servlet . http . IDENT_0 request = org . mockito . Mockito . mock ( javax . servlet . http . IDENT_0 . class ) ; java . lang . Long IDENT_1 = 1L ; java . lang . String IDENT_2 = "1" ; org . apache . IDENT_3 . entity . IDENT_4 IDENT_5 = METHOD_1 ( ) ; org . apache . IDENT_3 . entity . IDENT_6 IDENT_7 = METHOD_2 ( ) ; IDENT_7 . METHOD_3 ( STRING_0 ) ; java . lang . String IDENT_8 = METHOD_1 . getName ( ) ; org . apache . IDENT_3 . plugin . model . IDENT_9 rs = METHOD_4 ( ) ; org . apache . IDENT_3 . plugin . util . IDENT_10 IDENT_11 = METHOD_5 ( ) ; org . apache . IDENT_3 . db . IDENT_12 IDENT_13 = org . mockito . Mockito . mock ( org . apache . IDENT_3 . db . IDENT_12 . class ) ; org . mockito . Mockito . when ( IDENT_14 . METHOD_6 ( IDENT_8 , request ) ) . thenReturn ( true ) ; org . mockito . Mockito . when ( IDENT_15 . METHOD_7 ( ) ) . thenReturn ( IDENT_16 ) ; org . mockito . Mockito . when ( IDENT_16 . METHOD_8 ( IDENT_8 ) ) . thenReturn ( METHOD_1 ) ; org . mockito . Mockito . when ( IDENT_15 . METHOD_9 ( ) ) . thenReturn ( IDENT_13 ) ; org . mockito . Mockito . when ( IDENT_13 . METHOD_10 ( METHOD_1 . getType ( ) ) ) . thenReturn ( IDENT_7 ) ; org . mockito . Mockito . when ( IDENT_17 . METHOD_11 ( IDENT_8 ) ) . thenReturn ( rs ) ; org . mockito . Mockito . when ( IDENT_18 . METHOD_12 ( rs , IDENT_19 . IDENT_20 ) ) . thenReturn ( true ) ; org . mockito . Mockito . when ( IDENT_17 . METHOD_13 ( org . mockito . Mockito . anyString ( ) , org . mockito . Mockito . METHOD_14 ( ) , org . mockito . Mockito . METHOD_15 ( ) ) ) . thenReturn ( IDENT_11 ) ; org . mockito . Mockito . when ( IDENT_21 . METHOD_16 ( IDENT_8 ) ) . thenReturn ( null ) ; org . apache . IDENT_3 . plugin . util . IDENT_10 IDENT_22 = IDENT_23 . METHOD_17 ( IDENT_8 , IDENT_1 , 0L , IDENT_2 , "" , "" , true , request ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( IDENT_14 ) . METHOD_6 ( IDENT_8 , request ) ; org . mockito . Mockito . verify ( IDENT_16 ) . METHOD_8 ( IDENT_8 ) ; org . mockito . Mockito . verify ( IDENT_13 ) . METHOD_10 ( METHOD_1 . getType ( ) ) ; org . mockito . Mockito . verify ( IDENT_17 ) . METHOD_11 ( IDENT_8 ) ; org . mockito . Mockito . verify ( IDENT_18 ) . METHOD_12 ( rs , IDENT_19 . IDENT_20 ) ; org . mockito . Mockito . verify ( IDENT_17 ) . METHOD_13 ( IDENT_8 , IDENT_1 , false ) ; } METHOD_17 ( java . lang . String , java . lang . Long , java . lang . Long , java . lang . String , java . lang . String , java . lang . String , java . lang . Boolean , javax . servlet . http . IDENT_0 ) { if ( org . apache . IDENT_3 . rest . IDENT_19 . LOG . METHOD_18 ( ) ) { org . apache . IDENT_3 . rest . IDENT_19 . LOG . debug ( ( ( ( ( ( ( ( ( ( ( ( ( STRING_1 5 + IDENT_8 ) + STRING_2 ) + IDENT_1 ) + STRING_2 ) + IDENT_24 ) + STRING_2 ) + IDENT_2 ) + STRING_2 ) + IDENT_25 ) + STRING_2 ) + IDENT_26 ) + STRING_1 1 ) ) ; } org . apache . IDENT_3 . plugin . util . IDENT_10 ret = null ; int IDENT_27 = javax . servlet . http . IDENT_28 . IDENT_29 ; java . lang . String IDENT_30 = null ; org . apache . IDENT_3 . plugin . util . IDENT_31 IDENT_32 = null ; boolean IDENT_33 = false ; boolean IDENT_34 = IDENT_18 . METHOD_19 ( ) ; boolean IDENT_35 = IDENT_18 . METHOD_20 ( ) ; request . METHOD_21 ( STRING_3 , STRING_1 ) ; java . lang . Long IDENT_36 = null ; boolean isValid = false ; try { isValid = IDENT_14 . METHOD_6 ( IDENT_8 , request ) ; } catch ( javax . ws . rs . IDENT_37 IDENT_38 ) { IDENT_27 = IDENT_38 . METHOD_22 ( ) . getStatus ( ) ; IDENT_30 = IDENT_38 . METHOD_22 ( ) . METHOD_23 ( ) . toString ( ) ; } catch ( java . lang . Exception e ) { IDENT_27 = javax . servlet . http . IDENT_28 . IDENT_39 ; IDENT_30 = e . getMessage ( ) ; } if ( isValid ) { if ( IDENT_1 == null ) { IDENT_1 = java . lang . Long . valueOf ( ( - 1 ) ) ; } try { if ( org . apache . IDENT_3 . plugin . util . IDENT_31 . METHOD_24 ( org . apache . IDENT_3 . rest . IDENT_19 . IDENT_40 ) ) { IDENT_32 = org . apache . IDENT_3 . plugin . util . IDENT_31 . METHOD_25 ( org . apache . IDENT_3 . rest . IDENT_19 . IDENT_40 , ( ( ( ( ( ( STRING_4 + IDENT_8 ) + STRING_5 ) + IDENT_1 ) + STRING_6 ) + IDENT_24 ) + STRING_1 1 ) ) ; } org . apache . IDENT_3 . entity . IDENT_4 METHOD_1 = IDENT_15 . METHOD_7 ( ) . METHOD_8 ( IDENT_8 ) ; org . apache . IDENT_3 . entity . IDENT_6 IDENT_7 = IDENT_15 . METHOD_9 ( ) . METHOD_10 ( METHOD_1 . getType ( ) ) ; org . apache . IDENT_3 . plugin . model . IDENT_9 METHOD_4 = null ; if ( org . apache . commons . lang . StringUtils . equals ( IDENT_7 . METHOD_26 ( ) , IDENT_41 . IDENT_42 ) ) { METHOD_4 = IDENT_17 . METHOD_11 ( IDENT_8 ) ; if ( METHOD_20 ) { IDENT_33 = true ; } else { if ( METHOD_4 != null ) { IDENT_33 = IDENT_18 . METHOD_12 ( METHOD_4 , org . apache . IDENT_3 . rest . IDENT_19 . IDENT_43 ) ; if ( ! IDENT_33 ) { IDENT_33 = IDENT_18 . METHOD_12 ( METHOD_4 , org . apache . IDENT_3 . rest . IDENT_19 . IDENT_20 ) ; } } } } else { METHOD_4 = IDENT_17 . METHOD_27 ( IDENT_8 ) ; if ( METHOD_19 ) { IDENT_33 = true ; } else { if ( METHOD_4 != null ) { IDENT_33 = IDENT_18 . METHOD_12 ( METHOD_4 , org . apache . IDENT_3 . rest . IDENT_19 . IDENT_43 ) ; if ( ! IDENT_33 ) { IDENT_33 = IDENT_18 . METHOD_12 ( METHOD_4 , org . apache . IDENT_3 . rest . IDENT_19 . IDENT_20 ) ; } } } } if ( IDENT_33 ) { org . apache . IDENT_3 . plugin . util . IDENT_10 METHOD_5 = IDENT_17 . METHOD_13 ( IDENT_8 , IDENT_1 , ( ! IDENT_26 ) ) ; if ( METHOD_5 == null ) { IDENT_36 = IDENT_1 ; IDENT_27 = javax . servlet . http . IDENT_28 . IDENT_44 ; IDENT_30 = STRING_7 ; } else { java . util . Map < java . lang . String , org . apache . IDENT_3 . plugin . model . IDENT_45 . IDENT_46 > IDENT_47 = IDENT_21 . METHOD_16 ( IDENT_8 ) ; org . apache . IDENT_3 . plugin . util . IDENT_10 IDENT_48 = METHOD_28 ( METHOD_5 , IDENT_47 ) ; IDENT_36 = IDENT_48 . METHOD_29 ( ) ; if ( ( IDENT_1 == ( - 1L ) ) || ( ! IDENT_26 ) ) { ret = METHOD_30 ( IDENT_48 ) ; } else { ret = IDENT_48 ; } IDENT_27 = javax . servlet . http . IDENT_28 . IDENT_29 ; IDENT_30 = ( ( STRING_1 2 + ( ( ret . METHOD_31 ( ) ) != null ? ret . METHOD_31 ( ) . size ( ) : ( ret . METHOD_32 ( ) ) != null ? ret . METHOD_32 ( ) . size ( ) : 0 ) ) + STRING_1 3 ) + ( ret . METHOD_29 ( ) ) ; } } else { org . apache . IDENT_3 . rest . IDENT_19 . LOG . error ( ( ( ( ( STRING_1 0 + IDENT_8 ) + STRING_2 ) + IDENT_1 ) + STRING_8 ) ) ; IDENT_27 = javax . servlet . http . IDENT_28 . IDENT_49 ; IDENT_30 = STRING_9 ; } } catch ( java . lang . Throwable IDENT_50 ) { org . apache . IDENT_3 . rest . IDENT_19 . LOG . error ( ( ( ( ( ( ( STRING_1 0 + IDENT_8 ) + STRING_2 ) + IDENT_1 ) + STRING_2 ) + IDENT_24 ) + STRING_1 4 ) , IDENT_50 ) ; IDENT_27 = javax . servlet . http . IDENT_28 . IDENT_39 ; IDENT_30 = IDENT_50 . getMessage ( ) ; } finally { METHOD_33 ( IDENT_8 , IDENT_1 , IDENT_2 , IDENT_27 , IDENT_25 , IDENT_51 , request ) ; org . apache . IDENT_3 . plugin . util . IDENT_31 . log ( IDENT_32 ) ; } } IDENT_52 . METHOD_34 ( IDENT_8 , IDENT_2 , request , IDENT_53 . IDENT_54 , IDENT_36 , IDENT_1 , IDENT_24 , IDENT_27 ) ; if ( IDENT_27 != ( javax . servlet . http . IDENT_28 . IDENT_29 ) ) { boolean IDENT_55 = IDENT_27 != ( javax . servlet . http . IDENT_28 . IDENT_44 ) ; throw IDENT_56 . METHOD_35 ( IDENT_27 , IDENT_30 , IDENT_55 ) ; } if ( org . apache . IDENT_3 . rest . IDENT_19 . LOG . METHOD_18 ( ) ) { org . apache . IDENT_3 . rest . IDENT_19 . LOG . debug ( ( ( ( ( ( ( ( ( ( ( ( ( ( STRING_10 + IDENT_8 ) + STRING_2 ) + IDENT_1 ) + STRING_2 ) + IDENT_24 ) + STRING_2 ) + IDENT_2 ) + STRING_2 ) + IDENT_25 ) + STRING_2 ) + IDENT_26 ) + STRING_1 6 ) + ( ( ret == null ) || ( ( ret . METHOD_31 ( ) ) == null ) ? 0 : ret . METHOD_31 ( ) . size ( ) ) ) ) ; } return ret ; }
org . junit . Assert . assertNotNull ( IDENT_22 )