METHOD_0 ( ) { org . mockito . Mockito . doReturn ( true ) . when ( IDENT_0 ) . METHOD_1 ( IDENT_1 , IDENT_2 . IDENT_3 . IDENT_4 ) ; org . mockito . Mockito . doReturn ( org . mockito . Mockito . mock ( com . cloud . network . IDENT_5 . IDENT_6 . class ) ) . when ( IDENT_7 ) . METHOD_2 ( com . cloud . network . IDENT_5 . IDENT_6 . class , IDENT_8 ) ; com . cloud . network . IDENT_5 . IDENT_4 IDENT_9 = org . mockito . Mockito . mock ( com . cloud . network . IDENT_5 . IDENT_4 . class ) ; java . lang . Long IDENT_10 = INT_0 ; org . mockito . Mockito . when ( IDENT_9 . getId ( ) ) . thenReturn ( IDENT_10 ) ; org . mockito . Mockito . doReturn ( IDENT_9 ) . when ( IDENT_11 ) . METHOD_3 ( org . mockito . Mockito . anyString ( ) , org . mockito . Mockito . anyString ( ) , org . mockito . Mockito . METHOD_4 ( ) , org . mockito . Mockito . METHOD_5 ( ) ) ; org . mockito . Mockito . doReturn ( true ) . when ( IDENT_11 ) . METHOD_6 ( org . mockito . Mockito . any ( com . cloud . network . IDENT_5 . IDENT_4 . class ) , org . mockito . Mockito . any ( com . cloud . network . dao . IDENT_12 . class ) ) ; com . cloud . network . dao . IDENT_12 IDENT_13 = new com . cloud . network . dao . METHOD_7 ( ) ; IDENT_13 . METHOD_8 ( IDENT_1 ) ; IDENT_13 . METHOD_9 ( IDENT_8 ) ; java . lang . Long IDENT_14 = IDENT_15 . METHOD_10 ( IDENT_16 , IDENT_13 ) ; "<AssertPlaceHolder>" ; } METHOD_10 ( org . apache . IDENT_17 . api . command . user . network . IDENT_18 , com . cloud . network . IDENT_2 ) { com . cloud . network . IDENT_5 . IDENT_19 . IDENT_20 . debug ( ( ( STRING_0 + ( network . getId ( ) ) ) + STRING_1 ) ) ; if ( ! ( IDENT_21 . METHOD_1 ( network . METHOD_11 ( ) , IDENT_2 . IDENT_3 . IDENT_4 ) ) ) { throw new com . cloud . exception . METHOD_12 ( STRING_2 1 ) ; } com . cloud . network . IDENT_5 . IDENT_6 IDENT_5 = IDENT_22 . METHOD_2 ( com . cloud . network . IDENT_5 . IDENT_6 . class , network . METHOD_13 ( ) ) ; if ( IDENT_5 == null ) { throw new com . cloud . exception . METHOD_12 ( STRING_3 ) ; } java . lang . String IDENT_23 = ( ( ( ( STRING_4 + ( IDENT_5 . getName ( ) ) ) + STRING_2 2 ) + ( network . getName ( ) ) ) + STRING_5 ) + ( network . METHOD_14 ( ) ) ; java . lang . String description = STRING_6 + IDENT_23 ; com . cloud . network . IDENT_5 . IDENT_4 IDENT_24 = IDENT_25 . METHOD_3 ( IDENT_23 , description , network . METHOD_13 ( ) , IDENT_26 . METHOD_15 ( ) ) ; if ( IDENT_24 == null ) { throw new com . cloud . utils . exception . METHOD_16 ( ( STRING_2 0 + ( network . getId ( ) ) ) ) ; } com . cloud . network . IDENT_5 . IDENT_19 . IDENT_20 . debug ( ( ( ( STRING_7 + IDENT_23 ) + STRING_8 ) + ( network . getId ( ) ) ) ) ; java . lang . Long IDENT_27 = IDENT_24 . getId ( ) ; try { if ( ! ( IDENT_25 . METHOD_6 ( IDENT_24 , ( ( com . cloud . network . dao . METHOD_7 ) ( network ) ) ) ) ) { throw new com . cloud . utils . exception . METHOD_16 ( ( STRING_9 + ( network . getId ( ) ) ) ) ; } com . cloud . network . IDENT_5 . IDENT_19 . IDENT_20 . debug ( ( STRING_2 + ( network . getId ( ) ) ) ) ; } catch ( com . cloud . exception . IDENT_28 e ) { throw new com . cloud . utils . exception . METHOD_16 ( ( STRING_9 + ( network . getId ( ) ) ) , e ) ; } return IDENT_27 ; }
org . junit . Assert . assertEquals ( IDENT_10 , IDENT_14 )