METHOD_0 ( ) { com . cloud . IDENT_0 . IDENT_1 IDENT_2 = mock ( com . cloud . IDENT_0 . IDENT_1 . class ) ; long IDENT_3 = 1L ; com . cloud . IDENT_4 . manager . IDENT_5 IDENT_6 = mock ( com . cloud . IDENT_4 . manager . IDENT_5 . class ) ; when ( IDENT_6 . METHOD_1 ( STRING_0 ) ) . thenReturn ( null ) ; com . cloud . IDENT_0 . IDENT_7 context = mock ( com . cloud . IDENT_0 . IDENT_7 . class ) ; boolean expected = false ; boolean actual = IDENT_8 . METHOD_2 ( IDENT_2 , IDENT_3 , IDENT_6 , context ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( com . cloud . IDENT_0 . IDENT_1 , long , com . cloud . IDENT_4 . manager . IDENT_5 , com . cloud . IDENT_0 . IDENT_7 ) { com . cloud . IDENT_4 . api . IDENT_9 . IDENT_10 IDENT_11 = ( ( com . cloud . IDENT_4 . api . IDENT_9 . IDENT_10 ) ( IDENT_6 . METHOD_1 ( STRING_0 ) ) ) ; if ( ! ( IDENT_11 . METHOD_3 ( ) ) ) { org . apache . IDENT_12 . IDENT_13 . IDENT_14 . IDENT_15 . warn ( ( STRING_1 + ( IDENT_11 . METHOD_4 ( ) ) ) ) ; return false ; } try { IDENT_16 . METHOD_5 ( IDENT_17 . METHOD_6 ( ) , false ) ; com . cloud . network . dao . IDENT_18 IDENT_19 = IDENT_20 . METHOD_7 ( IDENT_17 . METHOD_6 ( ) . getId ( ) ) ; if ( ( IDENT_19 != null ) && ( IDENT_19 . METHOD_8 ( ) ) ) { com . cloud . IDENT_0 . IDENT_21 IDENT_22 = IDENT_23 . METHOD_9 ( IDENT_17 . getId ( ) ) ; IDENT_22 . METHOD_10 ( IDENT_19 . METHOD_11 ( ) . METHOD_12 ( ) ) ; IDENT_23 . update ( IDENT_22 . getId ( ) , IDENT_22 ) ; } } catch ( java . lang . Exception ex ) { org . apache . IDENT_12 . IDENT_13 . IDENT_14 . IDENT_15 . warn ( ( ( STRING_2 + ( IDENT_17 . METHOD_6 ( ) ) ) + STRING_3 ) , ex ) ; return false ; } return true ; }
org . junit . Assert . assertEquals ( expected , actual )