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 . IDENT_6 . IDENT_7 IDENT_6 = mock ( com . cloud . IDENT_6 . IDENT_7 . class ) ; when ( IDENT_6 . getId ( ) ) . thenReturn ( com . cloud . network . IDENT_3 . IDENT_4 . IDENT_5 ) ; when ( IDENT_6 . METHOD_3 ( ) ) . thenReturn ( IDENT_8 . IDENT_9 ) ; when ( IDENT_6 . METHOD_4 ( ) ) . thenReturn ( IDENT_10 . IDENT_11 ) ; when ( IDENT_12 . METHOD_5 ( com . cloud . network . IDENT_3 . IDENT_4 . IDENT_5 , IDENT_13 . IDENT_14 ) ) . thenReturn ( false ) ; mock ( com . cloud . IDENT_15 . IDENT_16 . class ) ; final com . cloud . network . dao . IDENT_17 network = mock ( com . cloud . network . dao . IDENT_17 . class ) ; when ( network . getName ( ) ) . thenReturn ( STRING_1 ) ; when ( network . METHOD_6 ( ) ) . thenReturn ( IDENT_18 . IDENT_19 ) ; when ( network . METHOD_7 ( ) ) . thenReturn ( com . cloud . network . IDENT_3 . IDENT_4 . IDENT_5 ) ; when ( network . METHOD_8 ( ) ) . thenReturn ( new java . net . URI ( STRING_2 ) ) ; final com . cloud . IDENT_15 . IDENT_20 IDENT_21 = mock ( com . cloud . IDENT_15 . IDENT_20 . class ) ; final com . cloud . dc . IDENT_22 dc = mock ( com . cloud . dc . IDENT_22 . class ) ; when ( IDENT_21 . METHOD_9 ( ) ) . thenReturn ( dc ) ; final com . cloud . host . IDENT_23 IDENT_24 = mock ( com . cloud . host . IDENT_23 . class ) ; when ( IDENT_25 . METHOD_1 ( METHOD_10 ( ) ) ) . thenReturn ( IDENT_24 ) ; when ( IDENT_24 . getId ( ) ) . thenReturn ( com . cloud . network . IDENT_3 . IDENT_4 . IDENT_5 ) ; when ( IDENT_26 . METHOD_11 ( METHOD_10 ( ) , ( ( java . lang . String ) ( any ( ) ) ) , ( ( com . cloud . network . IDENT_27 . IDENT_8 ) ( any ( ) ) ) ) ) . thenReturn ( com . cloud . network . IDENT_3 . IDENT_4 . IDENT_5 ) ; final com . cloud . network . IDENT_28 IDENT_29 = mock ( com . cloud . network . IDENT_28 . class ) ; when ( IDENT_29 . METHOD_12 ( ) ) . thenReturn ( com . cloud . network . IDENT_3 . IDENT_4 . IDENT_5 ) ; final java . util . List < com . cloud . network . IDENT_28 > IDENT_30 = mock ( java . util . List . class ) ; when ( IDENT_30 . isEmpty ( ) ) . thenReturn ( true ) ; when ( IDENT_31 . METHOD_13 ( METHOD_10 ( ) ) ) . thenReturn ( IDENT_30 ) ; final com . cloud . domain . IDENT_32 dom = mock ( com . cloud . domain . IDENT_32 . class ) ; when ( dom . getName ( ) ) . thenReturn ( STRING_3 ) ; final com . cloud . user . IDENT_33 IDENT_34 = mock ( com . cloud . user . IDENT_33 . class ) ; when ( IDENT_34 . METHOD_14 ( ) ) . thenReturn ( STRING_4 ) ; final com . cloud . IDENT_35 . IDENT_36 res = mock ( com . cloud . IDENT_35 . IDENT_36 . class ) ; when ( res . METHOD_15 ( ) ) . thenReturn ( dom ) ; when ( res . METHOD_16 ( ) ) . thenReturn ( IDENT_34 ) ; when ( IDENT_37 . METHOD_17 ( network , IDENT_6 , IDENT_21 , res ) ) . thenReturn ( network ) ; final com . cloud . IDENT_38 . api . IDENT_39 IDENT_40 = mock ( com . cloud . IDENT_38 . api . IDENT_39 . class ) ; when ( IDENT_40 . METHOD_18 ( ) ) . thenReturn ( true ) ; when ( IDENT_41 . METHOD_19 ( eq ( com . cloud . network . IDENT_3 . IDENT_4 . IDENT_5 ) , ( ( com . cloud . IDENT_38 . api . IDENT_42 ) ( any ( ) ) ) ) ) . thenReturn ( IDENT_40 ) ; final com . cloud . network . IDENT_43 IDENT_44 = IDENT_3 . METHOD_17 ( network , IDENT_6 , IDENT_21 , res ) ; "<AssertPlaceHolder>" ; verify ( IDENT_41 , times ( 0 ) ) . METHOD_19 ( eq ( com . cloud . network . IDENT_3 . IDENT_4 . IDENT_5 ) , ( ( com . cloud . IDENT_38 . api . IDENT_42 ) ( any ( ) ) ) ) ; } METHOD_17 ( com . cloud . network . IDENT_43 , com . cloud . IDENT_6 . IDENT_7 , com . cloud . IDENT_15 . IDENT_20 , com . cloud . IDENT_35 . IDENT_36 ) { org . apache . IDENT_45 . network . IDENT_3 . IDENT_46 . IDENT_47 . trace ( ( STRING_5 + ( network . toString ( ) ) ) ) ; super . METHOD_17 ( network , IDENT_6 , IDENT_21 , context ) ; IDENT_48 . METHOD_20 ( network , IDENT_6 , IDENT_21 , context ) ; return network ; }
org . junit . Assert . assertTrue ( ( IDENT_44 == null ) )