METHOD_0 ( ) { org . mockito . Mockito . when ( IDENT_0 . METHOD_1 ( org . mockito . Mockito . METHOD_2 ( ) ) ) . thenReturn ( IDENT_1 ) ; com . cloud . IDENT_2 . IDENT_3 IDENT_4 = org . mockito . Mockito . mock ( com . cloud . IDENT_2 . IDENT_5 . class ) ; java . util . List < com . cloud . IDENT_2 . IDENT_3 > IDENT_6 = new java . util . ArrayList < com . cloud . IDENT_2 . IDENT_3 > ( ) ; IDENT_6 . add ( IDENT_4 ) ; IDENT_7 . METHOD_3 ( IDENT_6 ) ; org . mockito . Mockito . when ( IDENT_4 . METHOD_4 ( IDENT_1 ) ) . thenReturn ( Status . IDENT_8 ) ; "<AssertPlaceHolder>" ; } METHOD_5 ( com . cloud . IDENT_9 . manager . IDENT_10 ) { final java . lang . Long IDENT_11 = IDENT_9 . getId ( ) ; final com . cloud . host . IDENT_12 host = IDENT_0 . METHOD_1 ( IDENT_11 ) ; if ( ( ( host != null ) && ( ( host . getType ( ) ) != null ) ) && ( ! ( host . getType ( ) . METHOD_6 ( ) ) ) ) { if ( com . cloud . IDENT_9 . manager . IDENT_13 . IDENT_14 . METHOD_7 ( ) ) { com . cloud . IDENT_9 . manager . IDENT_13 . IDENT_14 . debug ( ( ( STRING_0 + IDENT_11 ) + STRING_1 ) ) ; } final com . cloud . IDENT_9 . api . IDENT_15 IDENT_16 = METHOD_8 ( IDENT_11 , new com . cloud . IDENT_9 . api . METHOD_9 ( ) ) ; if ( ( IDENT_16 != null ) && ( IDENT_16 . METHOD_10 ( ) ) ) { final com . cloud . host . Status status = com . cloud . host . Status . IDENT_17 ; if ( com . cloud . IDENT_9 . manager . IDENT_13 . IDENT_14 . METHOD_7 ( ) ) { com . cloud . IDENT_9 . manager . IDENT_13 . IDENT_14 . debug ( ( ( ( STRING_2 + IDENT_11 ) + STRING_3 ) + status ) ) ; } return status ; } return IDENT_18 . METHOD_5 ( IDENT_11 ) ; } return com . cloud . host . Status . IDENT_19 ; }
org . junit . Assert . assertTrue ( ( ( IDENT_7 . METHOD_5 ( 1L ) ) == ( com . cloud . host . Status . IDENT_8 ) ) )