METHOD_0 ( ) { com . cloud . network . dao . IDENT_0 IDENT_1 = mock ( com . cloud . network . dao . IDENT_0 . class ) ; when ( IDENT_2 . METHOD_1 ( METHOD_2 ( ) ) ) . thenReturn ( IDENT_1 ) ; when ( IDENT_1 . METHOD_3 ( ) ) . thenReturn ( java . util . Arrays . asList ( new java . lang . String [ ] { STRING_0 } ) ) ; when ( IDENT_1 . getId ( ) ) . thenReturn ( INT_0 ) ; com . cloud . IDENT_3 . IDENT_4 IDENT_3 = mock ( com . cloud . IDENT_3 . IDENT_4 . class ) ; when ( IDENT_3 . getId ( ) ) . thenReturn ( INT_0 ) ; when ( IDENT_3 . METHOD_4 ( ) ) . thenReturn ( IDENT_5 . IDENT_6 ) ; when ( IDENT_3 . METHOD_5 ( ) ) . thenReturn ( IDENT_7 . IDENT_8 ) ; com . cloud . network . dao . IDENT_9 network = mock ( com . cloud . network . dao . IDENT_9 . class ) ; when ( network . getName ( ) ) . thenReturn ( STRING_1 ) ; when ( network . METHOD_6 ( ) ) . thenReturn ( IDENT_10 . IDENT_11 ) ; when ( network . METHOD_7 ( ) ) . thenReturn ( INT_0 ) ; com . cloud . IDENT_12 . IDENT_13 IDENT_14 = mock ( com . cloud . IDENT_12 . IDENT_13 . class ) ; com . cloud . dc . IDENT_15 dc = mock ( com . cloud . dc . IDENT_15 . class ) ; when ( IDENT_14 . METHOD_8 ( ) ) . thenReturn ( dc ) ; when ( IDENT_16 . METHOD_9 ( METHOD_2 ( ) , ( ( java . lang . String ) ( any ( ) ) ) , ( ( com . cloud . network . IDENT_17 . IDENT_5 ) ( any ( ) ) ) ) ) . thenReturn ( INT_0 ) ; when ( IDENT_18 . METHOD_10 ( METHOD_2 ( ) , METHOD_2 ( ) , METHOD_2 ( ) , ( ( java . lang . String ) ( any ( ) ) ) , eq ( true ) ) ) . thenReturn ( STRING_2 ) ; METHOD_11 ( ) . when ( IDENT_19 ) . METHOD_12 ( ( ( com . cloud . network . IDENT_20 ) ( any ( ) ) ) , ( ( com . cloud . network . dao . IDENT_9 ) ( any ( ) ) ) , METHOD_2 ( ) , METHOD_2 ( ) , ( ( java . lang . String ) ( any ( ) ) ) , eq ( STRING_2 ) ) ; com . cloud . domain . IDENT_21 dom = mock ( com . cloud . domain . IDENT_21 . class ) ; when ( dom . getName ( ) ) . thenReturn ( STRING_3 ) ; com . cloud . user . IDENT_22 IDENT_23 = mock ( com . cloud . user . IDENT_22 . class ) ; when ( IDENT_23 . METHOD_13 ( ) ) . thenReturn ( STRING_4 ) ; com . cloud . IDENT_24 . IDENT_25 res = mock ( com . cloud . IDENT_24 . IDENT_25 . class ) ; when ( res . METHOD_14 ( ) ) . thenReturn ( dom ) ; when ( res . METHOD_15 ( ) ) . thenReturn ( IDENT_23 ) ; com . cloud . network . IDENT_20 IDENT_26 = IDENT_19 . METHOD_16 ( network , IDENT_3 , IDENT_14 , res ) ; "<AssertPlaceHolder>" ; } METHOD_16 ( com . cloud . network . IDENT_20 , com . cloud . IDENT_3 . IDENT_4 , com . cloud . IDENT_12 . IDENT_13 , com . cloud . IDENT_24 . IDENT_25 ) { org . apache . IDENT_27 . network . IDENT_19 . IDENT_28 . IDENT_29 . trace ( ( STRING_5 + ( network . toString ( ) ) ) ) ; super . METHOD_16 ( network , IDENT_3 , IDENT_14 , context ) ; IDENT_30 . METHOD_17 ( network , IDENT_3 , IDENT_14 , context ) ; return network ; }
org . junit . Assert . assertTrue ( ( IDENT_26 != null ) )