METHOD_0 ( ) { java . lang . String IDENT_0 = STRING_0 ; org . mockito . Mockito . when ( IDENT_1 . IDENT_2 . METHOD_1 ( ) ) . thenReturn ( IDENT_0 ) ; com . IDENT_3 . IDENT_4 . IDENT_5 IDENT_6 = org . mockito . Mockito . mock ( com . IDENT_3 . IDENT_4 . IDENT_5 . class ) ; org . mockito . Mockito . doReturn ( IDENT_6 ) . when ( IDENT_7 ) . METHOD_2 ( IDENT_8 , IDENT_9 ) ; java . lang . String IDENT_10 = java . util . UUID . METHOD_3 ( IDENT_9 . getBytes ( ) ) . toString ( ) ; com . IDENT_3 . IDENT_4 . IDENT_11 IDENT_12 = org . mockito . Mockito . mock ( com . IDENT_3 . IDENT_4 . IDENT_11 . class ) ; org . IDENT_13 . api . mockito . IDENT_14 . METHOD_4 ( com . IDENT_3 . IDENT_4 . IDENT_11 . class ) ; org . IDENT_13 . api . mockito . IDENT_14 . when ( com . IDENT_3 . IDENT_4 . IDENT_11 . METHOD_5 ( IDENT_8 , IDENT_0 ) ) . thenReturn ( IDENT_12 ) ; org . IDENT_13 . api . mockito . IDENT_14 . METHOD_4 ( com . IDENT_3 . IDENT_4 . IDENT_5 . class ) ; org . IDENT_13 . api . mockito . IDENT_14 . when ( com . IDENT_3 . IDENT_4 . IDENT_5 . METHOD_6 ( org . mockito . Mockito . eq ( IDENT_8 ) , org . mockito . Mockito . eq ( IDENT_10 ) , org . mockito . Mockito . eq ( IDENT_9 ) , org . mockito . Mockito . eq ( IDENT_9 ) , org . mockito . Mockito . eq ( STRING_1 ) , org . mockito . Mockito . eq ( STRING_1 ) , org . mockito . Mockito . eq ( false ) , org . mockito . Mockito . METHOD_7 ( java . lang . String . class , java . lang . String . class ) ) ) . thenReturn ( IDENT_6 ) ; org . IDENT_13 . api . mockito . IDENT_14 . METHOD_4 ( com . IDENT_3 . IDENT_4 . IDENT_15 . class ) ; com . IDENT_3 . IDENT_4 . IDENT_15 IDENT_16 = org . mockito . Mockito . mock ( com . IDENT_3 . IDENT_4 . IDENT_15 . class ) ; org . IDENT_13 . api . mockito . IDENT_14 . when ( com . IDENT_3 . IDENT_4 . IDENT_15 . create ( org . mockito . Mockito . eq ( IDENT_8 ) , org . mockito . Mockito . any ( com . IDENT_3 . IDENT_4 . IDENT_15 . IDENT_17 . class ) ) ) . thenReturn ( IDENT_16 ) ; org . mockito . Mockito . METHOD_8 ( ) . when ( IDENT_7 ) . METHOD_9 ( org . mockito . Mockito . eq ( IDENT_8 ) , org . mockito . Mockito . any ( com . IDENT_3 . IDENT_4 . IDENT_5 . class ) , org . mockito . Mockito . any ( com . IDENT_3 . IDENT_4 . IDENT_15 . class ) ) ; com . IDENT_3 . IDENT_4 . IDENT_5 IDENT_18 = IDENT_7 . METHOD_10 ( IDENT_8 , IDENT_9 ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( IDENT_7 , times ( 0 ) ) . METHOD_9 ( org . mockito . Mockito . eq ( IDENT_8 ) , org . mockito . Mockito . any ( com . IDENT_3 . IDENT_4 . IDENT_5 . class ) , org . mockito . Mockito . any ( com . IDENT_3 . IDENT_4 . IDENT_15 . class ) ) ; org . mockito . Mockito . verify ( IDENT_7 , times ( 0 ) ) . METHOD_2 ( IDENT_8 , IDENT_9 ) ; org . mockito . Mockito . verify ( IDENT_6 ) . METHOD_11 ( IDENT_8 ) ; org . mockito . Mockito . verify ( IDENT_16 ) . METHOD_12 ( IDENT_8 ) ; org . IDENT_13 . api . mockito . IDENT_14 . METHOD_13 ( ) ; com . IDENT_3 . IDENT_4 . IDENT_5 . METHOD_6 ( org . mockito . Mockito . eq ( IDENT_8 ) , org . mockito . Mockito . eq ( IDENT_10 ) , org . mockito . Mockito . eq ( IDENT_9 ) , org . mockito . Mockito . eq ( IDENT_9 ) , org . mockito . Mockito . eq ( STRING_1 ) , org . mockito . Mockito . eq ( STRING_1 ) , org . mockito . Mockito . eq ( false ) , org . mockito . Mockito . METHOD_7 ( java . lang . String . class , java . lang . String . class ) ) ; com . IDENT_3 . IDENT_4 . IDENT_15 . create ( org . mockito . Mockito . eq ( IDENT_8 ) , org . mockito . Mockito . any ( com . IDENT_3 . IDENT_4 . IDENT_15 . IDENT_17 . class ) ) ; } METHOD_10 ( com . IDENT_3 . IDENT_4 . IDENT_19 , java . lang . String ) { java . lang . String IDENT_20 = IDENT_21 . METHOD_14 ( ) . METHOD_1 ( ) ; com . cloud . IDENT_22 . IDENT_23 . resource . IDENT_24 . IDENT_25 . debug ( java . lang . String . format ( STRING_2 , IDENT_26 , this . IDENT_21 . IDENT_2 . METHOD_1 ( ) ) ) ; com . IDENT_3 . IDENT_4 . IDENT_5 IDENT_18 = null ; com . IDENT_3 . IDENT_4 . IDENT_15 IDENT_27 = null ; try { com . IDENT_3 . IDENT_4 . IDENT_11 host = com . IDENT_3 . IDENT_4 . IDENT_11 . METHOD_5 ( conn , IDENT_20 ) ; java . lang . String IDENT_10 = java . util . UUID . METHOD_3 ( IDENT_26 . getBytes ( ) ) . toString ( ) ; java . util . Map < java . lang . String , java . lang . String > IDENT_28 = new java . util . HashMap < java . lang . String , java . lang . String > ( ) ; IDENT_18 = com . IDENT_3 . IDENT_4 . IDENT_5 . METHOD_6 ( conn , IDENT_10 , IDENT_26 , IDENT_26 , STRING_1 , STRING_1 , false , IDENT_28 ) ; com . IDENT_3 . IDENT_4 . IDENT_15 . IDENT_17 record = new com . IDENT_3 . IDENT_4 . IDENT_15 . METHOD_15 ( ) ; record . host = host ; record . IDENT_5 = IDENT_18 ; IDENT_28 . put ( STRING_3 , IDENT_26 ) ; record . IDENT_29 = IDENT_28 ; IDENT_27 = com . IDENT_3 . IDENT_4 . IDENT_15 . create ( conn , record ) ; IDENT_27 . METHOD_12 ( conn ) ; IDENT_18 . METHOD_11 ( conn ) ; return IDENT_18 ; } catch ( com . IDENT_3 . IDENT_4 . IDENT_30 . IDENT_31 | org . apache . IDENT_32 . IDENT_33 e ) { if ( e instanceof com . IDENT_3 . IDENT_4 . IDENT_30 . IDENT_34 ) { java . lang . String IDENT_35 = STRING_4 ; com . IDENT_3 . IDENT_4 . IDENT_30 . IDENT_34 IDENT_36 = ( ( com . IDENT_3 . IDENT_4 . IDENT_30 . IDENT_34 ) ( e ) ) ; if ( org . apache . commons . lang . StringUtils . contains ( IDENT_36 . message , IDENT_35 ) ) { com . cloud . IDENT_22 . IDENT_23 . resource . IDENT_24 . IDENT_25 . debug ( java . lang . String . format ( STRING_5 , IDENT_26 ) ) ; return METHOD_2 ( conn , IDENT_26 ) ; } } METHOD_9 ( conn , IDENT_18 , IDENT_27 ) ; com . cloud . IDENT_22 . IDENT_23 . resource . IDENT_24 . IDENT_25 . debug ( java . lang . String . format ( STRING_6 , IDENT_26 , IDENT_20 ) , e ) ; return null ; } }
org . junit . Assert . assertEquals ( IDENT_6 , IDENT_18 )