METHOD_0 ( ) { final com . cloud . network . dao . IDENT_0 IDENT_1 = mock ( com . cloud . network . dao . IDENT_0 . class ) ; when ( IDENT_2 . METHOD_1 ( ( ( java . lang . Long ) ( any ( ) ) ) ) ) . thenReturn ( IDENT_1 ) ; when ( IDENT_1 . METHOD_2 ( ) ) . thenReturn ( java . util . Arrays . asList ( new java . lang . String [ ] { STRING_0 } ) ) ; when ( IDENT_1 . getId ( ) ) . thenReturn ( com . cloud . network . IDENT_3 . IDENT_4 . IDENT_5 ) ; final com . cloud . network . IDENT_6 device = mock ( com . cloud . network . IDENT_6 . class ) ; when ( IDENT_7 . METHOD_3 ( com . cloud . network . IDENT_3 . IDENT_4 . IDENT_5 ) ) . thenReturn ( java . util . Arrays . asList ( new com . cloud . network . IDENT_6 [ ] { device } ) ) ; when ( device . getId ( ) ) . thenReturn ( 1L ) ; final com . cloud . IDENT_8 . IDENT_9 IDENT_8 = mock ( com . cloud . IDENT_8 . IDENT_9 . class ) ; when ( IDENT_8 . getId ( ) ) . thenReturn ( com . cloud . network . IDENT_3 . IDENT_4 . IDENT_5 ) ; when ( IDENT_8 . METHOD_4 ( ) ) . thenReturn ( IDENT_10 . IDENT_11 ) ; when ( IDENT_8 . METHOD_5 ( ) ) . thenReturn ( IDENT_12 . IDENT_13 ) ; when ( IDENT_14 . METHOD_6 ( com . cloud . network . IDENT_3 . IDENT_4 . IDENT_5 , IDENT_15 . IDENT_16 ) ) . thenReturn ( false ) ; mock ( com . cloud . IDENT_17 . IDENT_18 . class ) ; final com . cloud . network . dao . IDENT_19 network = mock ( com . cloud . network . dao . IDENT_19 . class ) ; when ( network . getName ( ) ) . thenReturn ( STRING_1 ) ; when ( network . METHOD_7 ( ) ) . thenReturn ( IDENT_20 . IDENT_21 . IDENT_22 ) ; when ( network . METHOD_8 ( ) ) . thenReturn ( com . cloud . network . IDENT_3 . IDENT_4 . IDENT_5 ) ; final com . cloud . IDENT_17 . IDENT_23 IDENT_24 = mock ( com . cloud . IDENT_17 . IDENT_23 . class ) ; final com . cloud . db . model . IDENT_25 IDENT_26 = mock ( com . cloud . db . model . IDENT_25 . class ) ; when ( IDENT_24 . METHOD_9 ( ) ) . thenReturn ( IDENT_26 ) ; final com . cloud . host . IDENT_27 IDENT_28 = mock ( com . cloud . host . IDENT_27 . class ) ; when ( IDENT_29 . METHOD_1 ( METHOD_10 ( ) ) ) . thenReturn ( IDENT_28 ) ; when ( IDENT_28 . METHOD_11 ( STRING_2 ) ) . thenReturn ( STRING_3 ) ; when ( IDENT_28 . METHOD_11 ( STRING_4 ) ) . thenReturn ( STRING_5 ) ; when ( IDENT_28 . getId ( ) ) . thenReturn ( com . cloud . network . IDENT_3 . IDENT_4 . IDENT_5 ) ; when ( IDENT_30 . METHOD_12 ( METHOD_10 ( ) , ( ( java . lang . String ) ( any ( ) ) ) , ( ( com . cloud . model . IDENT_31 . IDENT_10 ) ( any ( ) ) ) ) ) . thenReturn ( com . cloud . network . IDENT_3 . IDENT_4 . IDENT_5 ) ; final com . cloud . IDENT_32 . domain . IDENT_33 dom = mock ( com . cloud . IDENT_32 . domain . IDENT_33 . class ) ; when ( dom . getName ( ) ) . thenReturn ( STRING_6 ) ; final com . cloud . IDENT_32 . user . IDENT_34 IDENT_35 = mock ( com . cloud . IDENT_32 . user . IDENT_34 . class ) ; when ( IDENT_35 . METHOD_13 ( ) ) . thenReturn ( STRING_7 ) ; final com . cloud . IDENT_36 . IDENT_37 res = mock ( com . cloud . IDENT_36 . IDENT_37 . class ) ; when ( res . METHOD_14 ( ) ) . thenReturn ( dom ) ; when ( res . METHOD_15 ( ) ) . thenReturn ( IDENT_35 ) ; final com . cloud . IDENT_32 . IDENT_38 . IDENT_39 . IDENT_40 IDENT_39 = mock ( com . cloud . IDENT_32 . IDENT_38 . IDENT_39 . IDENT_40 . class ) ; when ( IDENT_39 . METHOD_16 ( ) ) . thenReturn ( true ) ; when ( IDENT_41 . METHOD_17 ( eq ( com . cloud . network . IDENT_3 . IDENT_4 . IDENT_5 ) , ( ( com . cloud . IDENT_32 . IDENT_38 . command . IDENT_42 ) ( any ( ) ) ) ) ) . thenReturn ( IDENT_39 ) ; final com . cloud . IDENT_32 . network . IDENT_20 IDENT_43 = IDENT_3 . METHOD_18 ( network , IDENT_8 , IDENT_24 , res ) ; "<AssertPlaceHolder>" ; verify ( IDENT_41 , times ( 1 ) ) . METHOD_17 ( eq ( com . cloud . network . IDENT_3 . IDENT_4 . IDENT_5 ) , ( ( com . cloud . IDENT_32 . IDENT_38 . command . IDENT_42 ) ( any ( ) ) ) ) ; } METHOD_18 ( com . cloud . IDENT_32 . network . IDENT_20 , com . cloud . IDENT_8 . IDENT_9 , com . cloud . IDENT_17 . IDENT_23 , com . cloud . IDENT_36 . IDENT_37 ) { assert ( network . METHOD_7 ( ) ) == ( com . cloud . IDENT_32 . network . IDENT_20 . IDENT_21 . IDENT_22 ) : STRING_8 + network ; final long IDENT_44 = IDENT_24 . METHOD_9 ( ) . getId ( ) ; java . lang . Long IDENT_45 = network . METHOD_8 ( ) ; if ( IDENT_45 == null ) { IDENT_45 = IDENT_46 . METHOD_12 ( IDENT_44 , IDENT_8 . METHOD_19 ( ) , IDENT_8 . METHOD_4 ( ) ) ; } final com . cloud . network . dao . IDENT_19 IDENT_47 = new com . cloud . network . dao . METHOD_20 ( network . METHOD_4 ( ) , network . METHOD_21 ( ) , network . METHOD_22 ( ) , network . METHOD_23 ( ) , com . cloud . IDENT_32 . network . IDENT_20 . IDENT_21 . IDENT_48 , network . METHOD_24 ( ) , IDENT_45 , IDENT_8 . METHOD_25 ( ) ) ; METHOD_26 ( network , IDENT_47 , IDENT_44 , IDENT_45 , context . METHOD_27 ( ) ) ; if ( ( network . METHOD_28 ( ) ) != null ) { IDENT_47 . METHOD_29 ( network . METHOD_28 ( ) ) ; } if ( ( network . METHOD_30 ( ) ) != null ) { IDENT_47 . METHOD_31 ( network . METHOD_30 ( ) ) ; } return IDENT_47 ; }
org . junit . Assert . assertTrue ( ( IDENT_43 == null ) )