METHOD_0 ( ) { com . cloud . network . IDENT_0 network = org . mockito . Mockito . mock ( com . cloud . network . IDENT_0 . class ) ; com . cloud . IDENT_1 . IDENT_2 IDENT_1 = org . mockito . Mockito . mock ( com . cloud . IDENT_1 . IDENT_2 . class ) ; com . cloud . IDENT_1 . IDENT_3 IDENT_4 = org . mockito . Mockito . mock ( com . cloud . IDENT_1 . IDENT_3 . class ) ; com . cloud . IDENT_5 . IDENT_6 IDENT_7 = org . mockito . Mockito . mock ( com . cloud . IDENT_5 . IDENT_6 . class ) ; com . cloud . IDENT_1 . IDENT_8 context = org . mockito . Mockito . mock ( com . cloud . IDENT_1 . IDENT_8 . class ) ; com . cloud . network . IDENT_0 . IDENT_9 service = com . cloud . network . IDENT_0 . IDENT_9 . IDENT_10 ; final long IDENT_11 = 1 ; final long IDENT_12 = INT_0 ; final long IDENT_13 = 10 ; final long IDENT_14 = INT_1 ; when ( network . getId ( ) ) . thenReturn ( IDENT_11 ) ; when ( network . METHOD_1 ( ) ) . thenReturn ( IDENT_12 ) ; when ( network . METHOD_2 ( ) ) . thenReturn ( IDENT_15 . IDENT_16 ) ; when ( network . METHOD_3 ( ) ) . thenReturn ( IDENT_13 ) ; when ( network . METHOD_4 ( ) ) . thenReturn ( IDENT_14 ) ; when ( network . METHOD_5 ( ) ) . thenReturn ( null ) ; when ( IDENT_1 . getType ( ) ) . thenReturn ( IDENT_17 . Type . User ) ; when ( IDENT_18 . IDENT_19 . METHOD_1 ( network ) ) . thenReturn ( IDENT_12 ) ; when ( IDENT_18 . IDENT_19 . METHOD_6 ( IDENT_12 , IDENT_0 . IDENT_20 . IDENT_21 . getName ( ) ) ) . thenReturn ( true ) ; when ( IDENT_18 . IDENT_19 . METHOD_7 ( IDENT_11 , service , IDENT_0 . IDENT_20 . IDENT_21 ) ) . thenReturn ( true ) ; when ( IDENT_18 . IDENT_22 . METHOD_8 ( IDENT_14 ) ) . thenReturn ( org . mockito . Mockito . mock ( com . cloud . dc . IDENT_23 . class ) ) ; when ( IDENT_18 . METHOD_9 ( network , service ) ) . thenReturn ( false ) ; "<AssertPlaceHolder>" ; } METHOD_10 ( com . cloud . network . IDENT_0 , com . cloud . IDENT_1 . IDENT_3 , com . cloud . IDENT_1 . IDENT_2 , com . cloud . IDENT_5 . IDENT_6 , com . cloud . IDENT_1 . IDENT_8 ) { if ( METHOD_9 ( IDENT_7 , network . METHOD_2 ( ) ) ) { if ( ( IDENT_1 . getType ( ) ) != ( IDENT_17 . Type . User ) ) { return false ; } @ com . cloud . network . element . METHOD_11 ( STRING_0 ) com . cloud . IDENT_1 . IDENT_24 IDENT_25 = IDENT_26 . METHOD_8 ( IDENT_1 . getId ( ) ) ; IDENT_26 . METHOD_12 ( IDENT_25 ) ; java . lang . String IDENT_27 = ( ( java . lang . String ) ( IDENT_1 . METHOD_13 ( IDENT_2 . IDENT_28 . IDENT_29 ) ) ) ; java . lang . String IDENT_30 = IDENT_25 . METHOD_14 ( ) ; java . lang . String IDENT_31 = IDENT_25 . METHOD_15 ( STRING_1 ) ; com . cloud . IDENT_32 . manager . IDENT_33 IDENT_34 = new com . cloud . IDENT_32 . manager . METHOD_16 ( IDENT_35 . IDENT_36 . IDENT_37 ) ; if ( ( IDENT_27 != null ) && ( IDENT_4 . METHOD_17 ( ) ) ) { com . cloud . IDENT_32 . api . IDENT_38 . IDENT_39 IDENT_40 = new com . cloud . IDENT_32 . api . IDENT_38 . METHOD_18 ( IDENT_27 , IDENT_4 . METHOD_19 ( ) , IDENT_25 . METHOD_20 ( ) , IDENT_41 . METHOD_21 ( ) ) ; IDENT_34 . METHOD_22 ( STRING_2 , IDENT_40 ) ; } java . lang . String IDENT_42 = IDENT_43 . METHOD_23 ( IDENT_25 . METHOD_24 ( ) ) . METHOD_25 ( ) ; java . lang . String IDENT_44 = IDENT_22 . METHOD_8 ( network . METHOD_4 ( ) ) . getName ( ) ; IDENT_34 . METHOD_22 ( STRING_3 , METHOD_26 ( IDENT_4 . METHOD_19 ( ) , IDENT_30 , IDENT_42 , IDENT_44 , IDENT_4 . METHOD_19 ( ) , IDENT_25 . METHOD_20 ( ) , IDENT_25 . METHOD_27 ( ) , IDENT_25 . getId ( ) , IDENT_25 . METHOD_28 ( ) , IDENT_31 ) ) ; try { IDENT_45 . METHOD_29 ( IDENT_7 . METHOD_30 ( ) . getId ( ) , IDENT_34 ) ; } catch ( com . cloud . exception . IDENT_46 e ) { com . cloud . network . element . IDENT_47 . IDENT_48 . debug ( ( STRING_4 + ( IDENT_7 . METHOD_30 ( ) ) ) ) ; return false ; } com . cloud . IDENT_32 . api . IDENT_49 IDENT_50 = IDENT_34 . METHOD_31 ( STRING_3 ) ; if ( ( IDENT_50 != null ) && ( IDENT_50 . METHOD_32 ( ) ) ) { com . cloud . network . element . IDENT_47 . IDENT_48 . info ( ( STRING_5 + ( IDENT_25 . METHOD_27 ( ) ) ) ) ; return true ; } com . cloud . network . element . IDENT_47 . IDENT_48 . info ( ( STRING_6 + ( IDENT_25 . METHOD_27 ( ) ) ) ) ; return false ; } return false ; }
org . junit . Assert . assertTrue ( IDENT_18 . METHOD_10 ( network , IDENT_4 , IDENT_1 , IDENT_7 , context ) )