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