METHOD_0 ( ) { org . mockito . Mockito . when ( IDENT_0 . METHOD_1 ( ) ) . thenReturn ( null ) ; long IDENT_1 = 1L ; org . mockito . Mockito . when ( IDENT_0 . METHOD_2 ( ) ) . thenReturn ( IDENT_1 ) ; com . cloud . network . IDENT_2 IDENT_3 = org . mockito . Mockito . mock ( com . cloud . network . IDENT_2 . class ) ; org . mockito . Mockito . when ( IDENT_3 . METHOD_3 ( ) ) . thenReturn ( INT_0 ) ; java . lang . Long IDENT_4 = INT_1 ; org . mockito . Mockito . when ( IDENT_3 . METHOD_4 ( ) ) . thenReturn ( IDENT_4 ) ; org . mockito . Mockito . doReturn ( IDENT_3 ) . when ( IDENT_5 ) . METHOD_5 ( IDENT_1 ) ; org . mockito . Mockito . doReturn ( INT_2 ) . when ( IDENT_6 ) . METHOD_6 ( IDENT_0 , IDENT_3 ) ; java . lang . Long IDENT_7 = IDENT_6 . METHOD_7 ( IDENT_0 ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( IDENT_6 , org . mockito . Mockito . times ( 0 ) ) . METHOD_6 ( IDENT_0 , IDENT_3 ) ; } METHOD_7 ( org . apache . IDENT_8 . api . command . user . network . IDENT_9 ) { java . lang . Long IDENT_10 = IDENT_11 . METHOD_1 ( ) ; if ( IDENT_10 != null ) { return IDENT_10 ; } if ( ( IDENT_11 . METHOD_2 ( ) ) == null ) { throw new com . cloud . exception . METHOD_8 ( STRING_0 ) ; } com . cloud . network . IDENT_2 network = IDENT_12 . METHOD_5 ( IDENT_11 . METHOD_2 ( ) ) ; if ( ( network . METHOD_3 ( ) ) == null ) { throw new com . cloud . exception . METHOD_8 ( ( ( STRING_1 + ( network . METHOD_9 ( ) ) ) + STRING_2 ) ) ; } IDENT_10 = network . METHOD_4 ( ) ; if ( IDENT_10 == null ) { IDENT_10 = METHOD_6 ( IDENT_11 , network ) ; } return IDENT_10 ; }
org . junit . Assert . assertEquals ( IDENT_4 , IDENT_7 )