METHOD_0 ( ) { com . cloud . IDENT_0 . IDENT_1 IDENT_2 = mock ( com . cloud . IDENT_0 . IDENT_1 . class ) ; com . cloud . IDENT_0 . IDENT_3 IDENT_0 = mock ( com . cloud . IDENT_0 . IDENT_3 . class ) ; com . cloud . IDENT_0 . IDENT_4 IDENT_5 = mock ( com . cloud . IDENT_0 . IDENT_4 . class ) ; com . cloud . IDENT_6 . api . IDENT_7 IDENT_8 = new com . cloud . IDENT_6 . api . METHOD_1 ( new com . cloud . IDENT_6 . api . METHOD_2 ( IDENT_0 , false , false ) , STRING_0 , true ) ; when ( IDENT_5 . METHOD_3 ( ) ) . thenReturn ( IDENT_0 ) ; when ( IDENT_0 . METHOD_4 ( ) ) . thenReturn ( 1L ) ; when ( IDENT_9 . METHOD_5 ( METHOD_6 ( ) , ( ( com . cloud . IDENT_6 . api . IDENT_10 ) ( any ( ) ) ) ) ) . thenReturn ( IDENT_8 ) ; boolean actual = IDENT_11 . METHOD_7 ( IDENT_2 , IDENT_5 , false , false ) ; "<AssertPlaceHolder>" ; } METHOD_7 ( com . cloud . IDENT_0 . IDENT_1 , com . cloud . IDENT_0 . IDENT_4 , boolean , boolean ) { final com . cloud . IDENT_0 . IDENT_3 IDENT_0 = IDENT_5 . METHOD_3 ( ) ; com . cloud . IDENT_6 . api . METHOD_2 IDENT_12 = new com . cloud . IDENT_6 . api . METHOD_2 ( IDENT_0 , METHOD_8 ( IDENT_0 . METHOD_9 ( ) ) , IDENT_13 ) ; IDENT_12 . METHOD_10 ( METHOD_11 ( IDENT_0 ) ) ; IDENT_12 . METHOD_12 ( METHOD_13 ( IDENT_0 ) ) ; final com . cloud . IDENT_6 . api . METHOD_2 IDENT_14 = IDENT_12 ; try { com . cloud . IDENT_6 . api . IDENT_15 IDENT_8 = null ; if ( ( IDENT_0 . METHOD_4 ( ) ) != null ) { IDENT_8 = IDENT_16 . METHOD_5 ( IDENT_0 . METHOD_4 ( ) , IDENT_14 ) ; } if ( ( IDENT_8 != null ) && ( IDENT_8 instanceof com . cloud . IDENT_6 . api . METHOD_1 ) ) { final com . cloud . IDENT_6 . api . METHOD_1 IDENT_17 = ( ( com . cloud . IDENT_6 . api . METHOD_1 ) ( IDENT_8 ) ) ; if ( ( IDENT_0 . getType ( ) ) == ( com . cloud . storage . IDENT_18 . Type . User ) ) { final java . lang . String platform = IDENT_17 . METHOD_14 ( ) ; if ( platform != null ) { final com . cloud . IDENT_0 . IDENT_19 IDENT_20 = IDENT_21 . METHOD_15 ( IDENT_0 . getId ( ) ) ; IDENT_21 . METHOD_16 ( IDENT_20 ) ; IDENT_20 . METHOD_17 ( STRING_1 , platform ) ; IDENT_21 . METHOD_18 ( IDENT_20 ) ; } } final com . cloud . IDENT_6 . api . to . IDENT_22 IDENT_23 = IDENT_14 . METHOD_19 ( ) ; if ( IDENT_23 != null ) { IDENT_24 . METHOD_20 ( IDENT_0 . METHOD_4 ( ) , IDENT_23 . METHOD_21 ( ) ) ; } if ( ! ( IDENT_8 . METHOD_22 ( ) ) ) { final java . lang . String IDENT_25 = IDENT_8 . METHOD_23 ( ) ; com . cloud . IDENT_0 . IDENT_26 . IDENT_27 . debug ( ( STRING_2 + IDENT_25 ) ) ; return false ; } IDENT_2 . METHOD_24 ( IDENT_5 , IDENT_8 ) ; } else { com . cloud . IDENT_0 . IDENT_26 . IDENT_27 . error ( ( STRING_3 + ( IDENT_0 . METHOD_25 ( ) ) ) ) ; return false ; } } catch ( final com . cloud . exception . IDENT_28 e ) { if ( ! IDENT_29 ) { return false ; } } catch ( final com . cloud . exception . IDENT_30 e ) { if ( ! IDENT_29 ) { return false ; } } return true ; }
org . junit . Assert . assertTrue ( actual )