METHOD_0 ( ) { org . apache . IDENT_0 . entity . IDENT_1 IDENT_2 = null ; org . apache . IDENT_0 . db . IDENT_3 IDENT_4 = org . mockito . Mockito . mock ( org . apache . IDENT_0 . db . IDENT_3 . class ) ; org . mockito . Mockito . when ( IDENT_5 . METHOD_1 ( ) ) . thenReturn ( IDENT_4 ) ; org . mockito . Mockito . when ( IDENT_4 . METHOD_2 ( name ) ) . thenReturn ( IDENT_2 ) ; org . apache . IDENT_0 . plugin . model . IDENT_6 result = IDENT_7 . METHOD_3 ( name ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( IDENT_5 ) . METHOD_1 ( ) ; org . mockito . Mockito . verify ( IDENT_4 ) . METHOD_2 ( name ) ; } METHOD_3 ( java . lang . String ) { if ( org . apache . IDENT_0 . rest . IDENT_8 . LOG . METHOD_4 ( ) ) { org . apache . IDENT_0 . rest . IDENT_8 . LOG . debug ( ( ( STRING_0 + name ) + STRING_1 ) ) ; } org . apache . IDENT_0 . plugin . model . IDENT_6 ret ; try { ret = IDENT_9 . METHOD_3 ( name ) ; } catch ( java . lang . Exception IDENT_10 ) { org . apache . IDENT_0 . rest . IDENT_8 . LOG . error ( ( ( STRING_2 + name ) + STRING_3 ) , IDENT_10 ) ; throw IDENT_11 . METHOD_5 ( IDENT_12 . IDENT_13 , IDENT_10 . getMessage ( ) , true ) ; } if ( ret == null ) { throw IDENT_11 . METHOD_5 ( IDENT_12 . IDENT_14 , STRING_4 , true ) ; } if ( org . apache . IDENT_0 . rest . IDENT_8 . LOG . METHOD_4 ( ) ) { org . apache . IDENT_0 . rest . IDENT_8 . LOG . debug ( ( ( ( STRING_5 + name ) + STRING_6 ) + ret ) ) ; } return ret ; }
org . junit . Assert . assertNull ( result )