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 ) ; when ( IDENT_6 . METHOD_5 ( ) ) . thenReturn ( IDENT_7 . IDENT_8 ) ; when ( IDENT_9 . METHOD_6 ( org . mockito . Mockito . any ( com . cloud . engine . IDENT_10 . api . storage . IDENT_11 . class ) ) ) . thenReturn ( true ) ; when ( IDENT_12 . update ( METHOD_2 ( ) , any ( com . cloud . storage . IDENT_13 . class ) ) ) . thenReturn ( true ) ; final com . cloud . storage . IDENT_14 IDENT_15 = IDENT_16 . METHOD_6 ( com . cloud . storage . IDENT_15 . IDENT_17 . IDENT_18 ) ; "<AssertPlaceHolder>" ; } METHOD_6 ( com . cloud . engine . IDENT_10 . api . storage . IDENT_11 ) { if ( ( METHOD_7 ( IDENT_15 , IDENT_19 . IDENT_20 ) ) == ( com . cloud . engine . IDENT_10 . api . storage . IDENT_21 . IDENT_22 ) ) { throw new java . lang . METHOD_8 ( STRING_0 ) ; } final com . cloud . storage . IDENT_23 IDENT_24 = IDENT_25 . METHOD_9 ( IDENT_15 . getId ( ) ) ; if ( IDENT_24 == null ) { throw new com . cloud . IDENT_26 . exceptions . METHOD_10 ( ( STRING_1 + ( IDENT_15 . getId ( ) ) ) ) ; } try { final com . cloud . engine . IDENT_10 . api . storage . IDENT_27 IDENT_28 = IDENT_15 . METHOD_11 ( ) ; final com . cloud . IDENT_26 . storage . IDENT_29 store = ( ( com . cloud . IDENT_26 . storage . IDENT_29 ) ( IDENT_28 . METHOD_12 ( ) ) ) ; if ( ( store != null ) && ( ( store . getStatus ( ) ) != ( com . cloud . model . IDENT_30 . IDENT_31 . IDENT_32 ) ) ) { IDENT_15 . METHOD_13 ( IDENT_33 . IDENT_34 ) ; throw new com . cloud . IDENT_26 . exceptions . METHOD_10 ( STRING_2 ) ; } IDENT_28 . METHOD_14 ( IDENT_35 . IDENT_33 . IDENT_36 ) ; boolean result = false ; try { result = IDENT_37 . METHOD_6 ( IDENT_15 ) ; if ( ! result ) { com . cloud . storage . IDENT_15 . IDENT_38 . IDENT_39 . debug ( ( STRING_3 + ( IDENT_15 . getId ( ) ) ) ) ; throw new com . cloud . IDENT_26 . exceptions . METHOD_10 ( ( STRING_3 + ( IDENT_15 . getId ( ) ) ) ) ; } } finally { if ( result ) { IDENT_28 . METHOD_14 ( IDENT_35 . IDENT_33 . IDENT_40 ) ; } else { IDENT_28 . METHOD_14 ( IDENT_35 . IDENT_33 . IDENT_34 ) ; } } return result ; } finally { if ( IDENT_24 != null ) { IDENT_25 . METHOD_15 ( IDENT_15 . getId ( ) ) ; } } }
org . junit . Assert . assertNotNull ( IDENT_15 )