METHOD_0 ( ) { final com . cloud . network . IDENT_0 network = mock ( com . cloud . network . IDENT_0 . class ) ; when ( network . METHOD_1 ( ) ) . thenReturn ( IDENT_1 . IDENT_2 ) ; when ( network . METHOD_2 ( ) ) . thenReturn ( new java . net . URI ( STRING_0 ) ) ; when ( network . getId ( ) ) . thenReturn ( com . cloud . network . element . IDENT_3 . IDENT_4 ) ; when ( network . METHOD_3 ( ) ) . thenReturn ( com . cloud . network . element . IDENT_3 . IDENT_4 ) ; when ( network . METHOD_4 ( ) ) . thenReturn ( IDENT_5 . IDENT_6 ) ; when ( IDENT_7 . METHOD_5 ( IDENT_8 . IDENT_9 , com . cloud . network . element . IDENT_3 . IDENT_4 ) ) . thenReturn ( true ) ; when ( IDENT_10 . METHOD_6 ( com . cloud . network . element . IDENT_3 . IDENT_4 , IDENT_11 . IDENT_12 , IDENT_8 . IDENT_9 ) ) . thenReturn ( true ) ; final com . cloud . network . IDENT_13 device = mock ( com . cloud . network . IDENT_13 . class ) ; when ( IDENT_14 . METHOD_7 ( com . cloud . network . element . IDENT_3 . IDENT_4 ) ) . thenReturn ( java . util . Arrays . asList ( new com . cloud . network . IDENT_13 [ ] { device } ) ) ; when ( device . getId ( ) ) . thenReturn ( 1L ) ; when ( device . METHOD_8 ( ) ) . thenReturn ( com . cloud . network . element . IDENT_3 . IDENT_15 ) ; com . cloud . host . IDENT_16 IDENT_17 = mock ( com . cloud . host . IDENT_16 . class ) ; when ( IDENT_17 . getId ( ) ) . thenReturn ( com . cloud . network . element . IDENT_3 . IDENT_15 ) ; when ( IDENT_18 . METHOD_9 ( com . cloud . network . element . IDENT_3 . IDENT_15 ) ) . thenReturn ( IDENT_17 ) ; final com . cloud . IDENT_19 . IDENT_20 IDENT_19 = mock ( com . cloud . IDENT_19 . IDENT_20 . class ) ; when ( IDENT_19 . getId ( ) ) . thenReturn ( com . cloud . network . element . IDENT_3 . IDENT_4 ) ; when ( IDENT_19 . METHOD_10 ( ) ) . thenReturn ( IDENT_21 . IDENT_22 ) ; when ( IDENT_19 . METHOD_4 ( ) ) . thenReturn ( IDENT_5 . IDENT_6 ) ; final com . cloud . IDENT_23 . IDENT_24 IDENT_25 = mock ( com . cloud . IDENT_23 . IDENT_24 . class ) ; final com . cloud . domain . IDENT_26 dom = mock ( com . cloud . domain . IDENT_26 . class ) ; when ( dom . getName ( ) ) . thenReturn ( STRING_1 ) ; final com . cloud . user . IDENT_27 IDENT_28 = mock ( com . cloud . user . IDENT_27 . class ) ; when ( IDENT_28 . METHOD_11 ( ) ) . thenReturn ( STRING_2 ) ; final com . cloud . IDENT_29 . IDENT_30 context = mock ( com . cloud . IDENT_29 . IDENT_30 . class ) ; when ( context . METHOD_12 ( ) ) . thenReturn ( dom ) ; when ( context . METHOD_13 ( ) ) . thenReturn ( IDENT_28 ) ; when ( IDENT_7 . METHOD_14 ( com . cloud . network . element . IDENT_3 . IDENT_4 , IDENT_11 . IDENT_31 , IDENT_8 . IDENT_9 ) ) . thenReturn ( true ) ; com . cloud . network . IDENT_32 . IDENT_33 IDENT_34 = mock ( com . cloud . network . IDENT_32 . IDENT_33 . class ) ; com . cloud . utils . net . IDENT_35 IDENT_36 = mock ( com . cloud . utils . net . IDENT_35 . class ) ; when ( IDENT_36 . METHOD_15 ( ) ) . thenReturn ( STRING_3 ) ; when ( IDENT_34 . METHOD_16 ( ) ) . thenReturn ( IDENT_36 ) ; when ( IDENT_34 . METHOD_17 ( ) ) . thenReturn ( STRING_4 ) ; when ( IDENT_34 . METHOD_18 ( ) ) . thenReturn ( STRING_5 ) ; when ( IDENT_37 . METHOD_19 ( IDENT_28 , network ) ) . thenReturn ( IDENT_34 ) ; when ( network . METHOD_20 ( ) ) . thenReturn ( com . cloud . network . element . IDENT_3 . IDENT_38 ) ; when ( network . METHOD_21 ( ) ) . thenReturn ( com . cloud . network . element . IDENT_3 . IDENT_39 ) ; final com . cloud . IDENT_40 . api . IDENT_41 IDENT_42 = mock ( com . cloud . IDENT_40 . api . IDENT_41 . class ) ; when ( IDENT_42 . METHOD_22 ( ) ) . thenReturn ( true ) ; when ( IDENT_43 . METHOD_23 ( eq ( com . cloud . network . element . IDENT_3 . IDENT_15 ) , ( ( com . cloud . IDENT_40 . api . IDENT_44 ) ( any ( ) ) ) ) ) . thenReturn ( IDENT_42 ) ; "<AssertPlaceHolder>" ; } METHOD_24 ( com . cloud . network . IDENT_0 , com . cloud . IDENT_19 . IDENT_20 , com . cloud . IDENT_23 . IDENT_24 , com . cloud . IDENT_29 . IDENT_30 ) { return true ; }
org . junit . Assert . assertTrue ( element . METHOD_24 ( network , IDENT_19 , IDENT_25 , context ) )