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 ) ; when ( network . METHOD_8 ( ) ) . thenReturn ( com . cloud . network . IDENT_3 . IDENT_4 . IDENT_5 ) ; final com . cloud . IDENT_17 . IDENT_22 IDENT_23 = mock ( com . cloud . IDENT_17 . IDENT_22 . class ) ; final com . cloud . dc . IDENT_24 dc = mock ( com . cloud . dc . IDENT_24 . class ) ; when ( IDENT_23 . METHOD_9 ( ) ) . thenReturn ( dc ) ; final com . cloud . host . IDENT_25 IDENT_26 = mock ( com . cloud . host . IDENT_25 . class ) ; when ( IDENT_27 . METHOD_1 ( METHOD_10 ( ) ) ) . thenReturn ( IDENT_26 ) ; when ( IDENT_26 . METHOD_11 ( STRING_2 ) ) . thenReturn ( STRING_3 ) ; when ( IDENT_26 . METHOD_11 ( STRING_4 ) ) . thenReturn ( STRING_5 ) ; when ( IDENT_26 . getId ( ) ) . thenReturn ( com . cloud . network . IDENT_3 . IDENT_4 . IDENT_5 ) ; when ( IDENT_28 . METHOD_12 ( METHOD_10 ( ) , ( ( java . lang . String ) ( any ( ) ) ) , ( ( com . cloud . network . IDENT_29 . IDENT_10 ) ( any ( ) ) ) ) ) . thenReturn ( com . cloud . network . IDENT_3 . IDENT_4 . IDENT_5 ) ; final com . cloud . domain . IDENT_30 dom = mock ( com . cloud . domain . IDENT_30 . class ) ; when ( dom . getName ( ) ) . thenReturn ( STRING_6 ) ; final com . cloud . user . IDENT_31 IDENT_32 = mock ( com . cloud . user . IDENT_31 . class ) ; when ( IDENT_32 . METHOD_13 ( ) ) . thenReturn ( STRING_7 ) ; final com . cloud . IDENT_33 . IDENT_34 res = mock ( com . cloud . IDENT_33 . IDENT_34 . class ) ; when ( res . METHOD_14 ( ) ) . thenReturn ( dom ) ; when ( res . METHOD_15 ( ) ) . thenReturn ( IDENT_32 ) ; final com . cloud . IDENT_35 . api . IDENT_36 IDENT_37 = mock ( com . cloud . IDENT_35 . api . IDENT_36 . class ) ; when ( IDENT_37 . METHOD_16 ( ) ) . thenReturn ( true ) ; when ( IDENT_38 . METHOD_17 ( eq ( com . cloud . network . IDENT_3 . IDENT_4 . IDENT_5 ) , ( ( com . cloud . IDENT_35 . api . IDENT_39 ) ( any ( ) ) ) ) ) . thenReturn ( IDENT_37 ) ; final com . cloud . network . IDENT_40 IDENT_41 = IDENT_3 . METHOD_18 ( network , IDENT_8 , IDENT_23 , res ) ; "<AssertPlaceHolder>" ; verify ( IDENT_38 , times ( 1 ) ) . METHOD_17 ( eq ( com . cloud . network . IDENT_3 . IDENT_4 . IDENT_5 ) , ( ( com . cloud . IDENT_35 . api . IDENT_39 ) ( any ( ) ) ) ) ; } METHOD_18 ( com . cloud . network . IDENT_40 , com . cloud . IDENT_8 . IDENT_9 , com . cloud . IDENT_17 . IDENT_22 , com . cloud . IDENT_33 . IDENT_34 ) { org . apache . IDENT_42 . network . IDENT_3 . IDENT_43 . IDENT_44 . trace ( ( STRING_8 + ( network . toString ( ) ) ) ) ; super . METHOD_18 ( network , IDENT_8 , IDENT_23 , context ) ; IDENT_45 . METHOD_19 ( network , IDENT_8 , IDENT_23 , context ) ; return network ; }
org . junit . Assert . assertTrue ( ( IDENT_41 == null ) )