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