METHOD_0 ( ) { resource . METHOD_1 ( STRING_0 , parameters ) ; final com . cloud . IDENT_0 . api . IDENT_1 IDENT_2 = mock ( com . cloud . IDENT_0 . api . IDENT_1 . class ) ; final com . cloud . IDENT_0 . api . to . IDENT_3 rule = new com . cloud . IDENT_0 . api . to . METHOD_2 ( 1 , STRING_1 , null , null , STRING_2 , null , null , null , false , false ) ; final java . util . List < com . cloud . IDENT_0 . api . to . METHOD_2 > rules = new java . util . ArrayList < com . cloud . IDENT_0 . api . to . METHOD_2 > ( ) ; rules . add ( rule ) ; when ( IDENT_2 . METHOD_3 ( ) ) . thenReturn ( rules ) ; when ( IDENT_2 . METHOD_4 ( ) ) . thenReturn ( STRING_3 ) ; @ com . cloud . network . resource . METHOD_5 ( STRING_4 ) final java . util . List < com . cloud . network . IDENT_4 . IDENT_5 > IDENT_6 = java . util . Collections . IDENT_7 ; when ( IDENT_8 . METHOD_6 ( STRING_3 ) ) . thenReturn ( IDENT_6 ) ; final com . cloud . network . IDENT_4 . IDENT_5 [ ] IDENT_9 = resource . METHOD_7 ( STRING_2 , STRING_1 ) ; IDENT_9 [ 0 ] . METHOD_8 ( java . util . UUID . METHOD_9 ( ) ) ; IDENT_9 [ 1 ] . METHOD_8 ( java . util . UUID . METHOD_9 ( ) ) ; when ( IDENT_8 . METHOD_10 ( eq ( STRING_3 ) , ( ( com . cloud . network . IDENT_4 . IDENT_5 ) ( any ( ) ) ) ) ) . thenReturn ( IDENT_9 [ 0 ] ) . thenReturn ( IDENT_9 [ 1 ] ) ; final com . cloud . IDENT_0 . api . IDENT_10 a = ( ( com . cloud . IDENT_0 . api . IDENT_10 ) ( resource . METHOD_11 ( IDENT_2 ) ) ) ; "<AssertPlaceHolder>" ; verify ( IDENT_8 , METHOD_12 ( 2 ) ) . METHOD_10 ( eq ( STRING_3 ) , METHOD_13 ( new org . mockito . IDENT_11 < com . cloud . network . IDENT_4 . IDENT_5 > ( ) { @ com . cloud . network . resource . Override public boolean matches ( final java . lang . Object IDENT_12 ) { final com . cloud . network . IDENT_4 . IDENT_5 rule = ( ( com . cloud . network . IDENT_4 . IDENT_5 ) ( IDENT_12 ) ) ; if ( ( rule . getType ( ) . equals ( STRING_5 ) ) && ( ( ( com . cloud . network . IDENT_4 . IDENT_13 ) ( rule ) ) . METHOD_14 ( ) . equals ( STRING_2 ) ) ) { return true ; } if ( ( rule . getType ( ) . equals ( STRING_6 ) ) && ( ( ( com . cloud . network . IDENT_4 . IDENT_14 ) ( rule ) ) . METHOD_15 ( ) . equals ( STRING_1 ) ) ) { return true ; } return false ; } } ) ) ; } METHOD_16 ( ) { return result ; }
org . junit . Assert . assertTrue ( a . METHOD_16 ( ) )