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