METHOD_0 ( ) { com . cloud . network . IDENT_0 . IDENT_1 IDENT_2 = METHOD_1 ( this . IDENT_3 ) ; com . cloud . network . IDENT_0 . IDENT_4 IDENT_5 = mock ( com . cloud . network . IDENT_0 . IDENT_4 . class ) ; when ( IDENT_5 . METHOD_2 ( ) ) . thenReturn ( com . cloud . network . IDENT_0 . IDENT_6 . IDENT_7 ) ; doReturn ( true ) . when ( IDENT_2 ) . METHOD_3 ( IDENT_5 ) ; com . cloud . IDENT_8 . manager . IDENT_9 commands = mock ( com . cloud . IDENT_8 . manager . IDENT_9 . class ) ; when ( commands . size ( ) ) . thenReturn ( 3 ) ; com . cloud . IDENT_8 . api . IDENT_10 IDENT_11 = mock ( com . cloud . IDENT_8 . api . IDENT_10 . class ) ; com . cloud . IDENT_8 . api . IDENT_10 IDENT_12 = mock ( com . cloud . IDENT_8 . api . IDENT_10 . class ) ; com . cloud . IDENT_8 . api . IDENT_10 IDENT_13 = mock ( com . cloud . IDENT_8 . api . IDENT_10 . class ) ; com . cloud . IDENT_8 . api . IDENT_10 [ ] IDENT_14 = new com . cloud . IDENT_8 . api . IDENT_10 [ ] { IDENT_11 , IDENT_12 , IDENT_13 } ; when ( IDENT_11 . METHOD_4 ( ) ) . thenReturn ( true ) ; when ( IDENT_12 . METHOD_4 ( ) ) . thenReturn ( true ) ; when ( IDENT_13 . METHOD_4 ( ) ) . thenReturn ( true ) ; when ( this . IDENT_15 . METHOD_5 ( com . cloud . network . IDENT_0 . IDENT_6 . IDENT_7 , commands ) ) . thenReturn ( IDENT_14 ) ; final boolean result = IDENT_2 . METHOD_6 ( IDENT_5 , commands ) ; verify ( this . IDENT_15 , times ( 1 ) ) . METHOD_5 ( com . cloud . network . IDENT_0 . IDENT_6 . IDENT_7 , commands ) ; verify ( IDENT_11 , times ( 1 ) ) . METHOD_4 ( ) ; verify ( IDENT_12 , times ( 1 ) ) . METHOD_4 ( ) ; verify ( IDENT_13 , times ( 1 ) ) . METHOD_4 ( ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( ) { return result ; }
org . junit . Assert . assertTrue ( result )