METHOD_0 ( ) { when ( IDENT_0 . METHOD_1 ( METHOD_2 ( ) ) ) . thenReturn ( IDENT_1 ) ; when ( IDENT_1 . METHOD_3 ( ) ) . thenReturn ( IDENT_2 . IDENT_3 ) ; when ( IDENT_1 . METHOD_4 ( ) ) . thenReturn ( IDENT_4 . IDENT_5 . IDENT_6 ) ; when ( IDENT_7 . METHOD_5 ( ) ) . thenReturn ( IDENT_8 . IDENT_9 ) ; when ( IDENT_10 . METHOD_6 ( org . mockito . Mockito . any ( org . apache . IDENT_11 . engine . IDENT_12 . api . storage . IDENT_13 . class ) ) ) . thenReturn ( true ) ; when ( IDENT_14 . update ( METHOD_2 ( ) , any ( com . cloud . storage . IDENT_15 . class ) ) ) . thenReturn ( true ) ; com . cloud . storage . IDENT_16 IDENT_17 = IDENT_18 . METHOD_6 ( com . cloud . storage . IDENT_17 . IDENT_19 . IDENT_20 ) ; "<AssertPlaceHolder>" ; } METHOD_6 ( org . apache . IDENT_11 . engine . IDENT_12 . api . storage . IDENT_13 ) { if ( ( METHOD_7 ( IDENT_17 , IDENT_21 . IDENT_22 ) ) == ( org . apache . IDENT_11 . engine . IDENT_12 . api . storage . IDENT_23 . IDENT_24 ) ) { throw new com . cloud . utils . exception . METHOD_8 ( STRING_0 ) ; } com . cloud . storage . IDENT_25 IDENT_26 = IDENT_27 . METHOD_9 ( IDENT_17 . getId ( ) ) ; if ( IDENT_26 == null ) { throw new com . cloud . utils . exception . METHOD_8 ( ( STRING_1 + ( IDENT_17 . getId ( ) ) ) ) ; } try { org . apache . IDENT_11 . engine . IDENT_12 . api . storage . IDENT_28 IDENT_29 = IDENT_17 . METHOD_10 ( ) ; com . cloud . storage . IDENT_30 store = ( ( com . cloud . storage . IDENT_30 ) ( IDENT_29 . METHOD_11 ( ) ) ) ; if ( ( store != null ) && ( ( store . getStatus ( ) ) != ( com . cloud . storage . IDENT_31 . IDENT_32 ) ) ) { IDENT_17 . METHOD_12 ( IDENT_33 . IDENT_34 ) ; throw new com . cloud . utils . exception . METHOD_8 ( STRING_2 ) ; } IDENT_29 . METHOD_13 ( IDENT_35 . IDENT_33 . IDENT_36 ) ; boolean result = false ; try { result = IDENT_37 . METHOD_6 ( IDENT_17 ) ; if ( ! result ) { org . apache . IDENT_11 . storage . IDENT_17 . IDENT_38 . IDENT_39 . debug ( ( STRING_3 + ( IDENT_17 . getId ( ) ) ) ) ; throw new com . cloud . utils . exception . METHOD_8 ( ( STRING_3 + ( IDENT_17 . getId ( ) ) ) ) ; } } finally { if ( result ) { IDENT_29 . METHOD_13 ( IDENT_35 . IDENT_33 . IDENT_40 ) ; } else { IDENT_29 . METHOD_13 ( IDENT_35 . IDENT_33 . IDENT_34 ) ; } } return result ; } finally { if ( IDENT_26 != null ) { IDENT_27 . METHOD_14 ( IDENT_17 . getId ( ) ) ; } } }
org . junit . Assert . assertNotNull ( IDENT_17 )