METHOD_0 ( ) { javax . servlet . http . IDENT_0 request = org . mockito . Mockito . mock ( javax . servlet . http . IDENT_0 . class ) ; org . apache . IDENT_1 . plugin . store . IDENT_2 < org . apache . IDENT_1 . plugin . model . IDENT_3 > ret = org . mockito . Mockito . mock ( org . apache . IDENT_1 . plugin . store . IDENT_2 . class ) ; org . apache . IDENT_1 . plugin . util . IDENT_4 filter = new org . apache . IDENT_1 . plugin . util . METHOD_1 ( ) ; filter . METHOD_2 ( METHOD_1 . IDENT_5 , STRING_0 ) ; filter . METHOD_2 ( METHOD_1 . IDENT_6 , STRING_1 ) ; org . mockito . Mockito . when ( IDENT_7 . METHOD_3 ( request , IDENT_8 . IDENT_9 ) ) . thenReturn ( filter ) ; org . mockito . Mockito . when ( IDENT_10 . METHOD_4 ( filter ) ) . thenReturn ( ret ) ; java . lang . Long data = IDENT_11 . METHOD_5 ( request ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( IDENT_7 ) . METHOD_3 ( request , IDENT_8 . IDENT_9 ) ; org . mockito . Mockito . verify ( IDENT_10 ) . METHOD_4 ( filter ) ; } METHOD_5 ( javax . servlet . http . IDENT_0 ) { if ( org . apache . IDENT_1 . rest . IDENT_12 . LOG . METHOD_6 ( ) ) { org . apache . IDENT_1 . rest . IDENT_12 . LOG . debug ( STRING_2 ) ; } java . lang . Long ret = null ; org . apache . IDENT_1 . plugin . util . IDENT_13 IDENT_14 = null ; try { if ( org . apache . IDENT_1 . plugin . util . IDENT_13 . METHOD_7 ( org . apache . IDENT_1 . rest . IDENT_12 . IDENT_15 ) ) { IDENT_14 = org . apache . IDENT_1 . plugin . util . IDENT_13 . METHOD_8 ( org . apache . IDENT_1 . rest . IDENT_12 . IDENT_15 , STRING_3 ) ; } java . util . List < org . apache . IDENT_1 . plugin . model . IDENT_3 > services = METHOD_9 ( request ) . METHOD_9 ( ) ; ret = java . lang . Long . valueOf ( ( services == null ? 0 : services . size ( ) ) ) ; } catch ( javax . ws . rs . IDENT_16 IDENT_17 ) { throw IDENT_17 ; } catch ( java . lang . Throwable IDENT_17 ) { org . apache . IDENT_1 . rest . IDENT_12 . LOG . error ( STRING_4 , IDENT_17 ) ; throw IDENT_18 . METHOD_10 ( IDENT_17 . getMessage ( ) ) ; } finally { org . apache . IDENT_1 . plugin . util . IDENT_13 . log ( IDENT_14 ) ; } if ( org . apache . IDENT_1 . rest . IDENT_12 . LOG . METHOD_6 ( ) ) { org . apache . IDENT_1 . rest . IDENT_12 . LOG . debug ( ( STRING_5 + ret ) ) ; } return ret ; }
org . junit . Assert . assertNotNull ( data )