METHOD_0 ( ) { final com . cloud . network . dao . IDENT_0 IDENT_1 = mock ( com . cloud . network . dao . IDENT_0 . class ) ; when ( IDENT_2 . METHOD_1 ( ( ( java . lang . Long ) ( any ( ) ) ) ) ) . thenReturn ( IDENT_1 ) ; when ( IDENT_1 . METHOD_2 ( ) ) . thenReturn ( java . util . Arrays . asList ( new java . lang . String [ ] { STRING_0 , STRING_1 } ) ) ; when ( IDENT_1 . getId ( ) ) . thenReturn ( com . cloud . network . IDENT_3 . IDENT_4 . IDENT_5 ) ; mock ( com . cloud . network . IDENT_6 . class ) ; when ( IDENT_7 . METHOD_3 ( com . cloud . network . IDENT_3 . IDENT_4 . IDENT_5 ) ) . thenReturn ( java . util . Collections . < com . cloud . network . IDENT_6 > emptyList ( ) ) ; final com . cloud . IDENT_8 . IDENT_9 IDENT_8 = mock ( com . cloud . IDENT_8 . IDENT_9 . class ) ; when ( IDENT_8 . getId ( ) ) . thenReturn ( com . cloud . network . IDENT_3 . IDENT_4 . IDENT_5 ) ; when ( IDENT_8 . METHOD_4 ( ) ) . thenReturn ( IDENT_10 . IDENT_11 ) ; when ( IDENT_8 . METHOD_5 ( ) ) . thenReturn ( IDENT_12 . IDENT_13 ) ; final com . cloud . IDENT_14 . IDENT_15 plan = mock ( com . cloud . IDENT_14 . IDENT_15 . class ) ; final com . cloud . IDENT_16 . network . IDENT_17 network = mock ( com . cloud . IDENT_16 . network . IDENT_17 . class ) ; final com . cloud . IDENT_16 . user . IDENT_18 IDENT_19 = mock ( com . cloud . IDENT_16 . user . IDENT_18 . class ) ; final com . cloud . IDENT_16 . network . IDENT_17 IDENT_20 = IDENT_3 . METHOD_6 ( IDENT_8 , plan , network , IDENT_19 ) ; "<AssertPlaceHolder>" ; } METHOD_6 ( com . cloud . IDENT_8 . IDENT_9 , com . cloud . IDENT_14 . IDENT_15 , com . cloud . IDENT_16 . network . IDENT_17 , com . cloud . IDENT_16 . user . IDENT_18 ) { final com . cloud . network . dao . IDENT_0 IDENT_1 = IDENT_21 . METHOD_1 ( plan . METHOD_7 ( ) ) ; final com . cloud . IDENT_16 . dc . IDENT_22 dc = IDENT_23 . METHOD_1 ( com . cloud . IDENT_16 . dc . IDENT_22 . class , plan . METHOD_8 ( ) ) ; if ( ! ( METHOD_9 ( IDENT_8 , dc , IDENT_1 ) ) ) { return null ; } final com . cloud . model . IDENT_24 . IDENT_25 IDENT_26 ; if ( ( IDENT_27 != null ) && ( ( IDENT_27 . METHOD_10 ( ) ) != null ) ) { IDENT_26 = IDENT_27 . METHOD_10 ( ) ; } else { IDENT_26 = com . cloud . model . IDENT_24 . IDENT_25 . IDENT_28 ; } final com . cloud . network . dao . IDENT_29 network = new com . cloud . network . dao . METHOD_11 ( IDENT_8 . METHOD_4 ( ) , com . cloud . model . IDENT_24 . IDENT_30 . IDENT_31 , IDENT_26 , IDENT_8 . getId ( ) , com . cloud . IDENT_16 . network . IDENT_17 . IDENT_32 . IDENT_33 , plan . METHOD_8 ( ) , plan . METHOD_7 ( ) , IDENT_8 . METHOD_12 ( ) ) ; if ( IDENT_27 != null ) { if ( ( ! ( IDENT_12 . IDENT_34 . equals ( IDENT_8 . METHOD_5 ( ) ) ) ) && ( ( ( ( IDENT_27 . METHOD_13 ( ) ) == null ) && ( ( IDENT_27 . METHOD_14 ( ) ) != null ) ) || ( ( ( IDENT_27 . METHOD_13 ( ) ) != null ) && ( ( IDENT_27 . METHOD_14 ( ) ) == null ) ) ) ) { throw new com . cloud . IDENT_16 . exceptions . METHOD_15 ( STRING_2 ) ; } if ( ( IDENT_27 . METHOD_13 ( ) ) != null ) { network . METHOD_16 ( IDENT_27 . METHOD_13 ( ) ) ; network . METHOD_17 ( IDENT_27 . METHOD_14 ( ) ) ; } else { throw new com . cloud . IDENT_16 . exceptions . METHOD_15 ( ( ( STRING_3 + network ) + STRING_4 ) ) ; } if ( IDENT_8 . METHOD_18 ( ) ) { network . METHOD_19 ( IDENT_27 . METHOD_20 ( ) ) ; network . METHOD_21 ( IDENT_32 . IDENT_35 ) ; } } else { throw new com . cloud . IDENT_16 . exceptions . METHOD_22 ( ( ( STRING_3 + network ) + STRING_4 ) ) ; } return network ; }
org . junit . Assert . assertTrue ( ( IDENT_20 == null ) )