METHOD_0 ( ) { java . util . Map < java . lang . String , java . lang . String > IDENT_0 = METHOD_1 ( STRING_0 , STRING_1 ) ; java . util . Map < java . lang . String , java . util . List < java . lang . String > > map = METHOD_1 ( STRING_2 , asList ( STRING_3 , STRING_4 ) ) ; when ( client . METHOD_2 ( STRING_5 ) ) . thenReturn ( true ) ; when ( client . METHOD_3 ( STRING_5 ) ) . thenReturn ( map ) ; when ( context . METHOD_4 ( ) ) . thenReturn ( STRING_5 ) ; when ( client . METHOD_5 ( ) ) . thenReturn ( IDENT_0 ) ; java . lang . String result = IDENT_1 . METHOD_6 ( new com . IDENT_2 . ambari . shell . IDENT_3 . METHOD_7 ( STRING_5 ) ) ; verify ( client ) . METHOD_2 ( STRING_5 ) ; verify ( client ) . METHOD_3 ( STRING_5 ) ; verify ( client ) . METHOD_8 ( STRING_5 ) ; "<AssertPlaceHolder>" ; } METHOD_6 ( com . IDENT_2 . ambari . shell . IDENT_3 . METHOD_7 ) { java . lang . String message ; java . lang . String IDENT_4 = id . getName ( ) ; if ( client . METHOD_2 ( IDENT_4 ) ) { context . METHOD_9 ( IDENT_4 , IDENT_5 . IDENT_6 ) ; context . METHOD_10 ( IDENT_7 . IDENT_8 ) ; message = java . lang . String . format ( STRING_6 , METHOD_11 ( client . METHOD_5 ( ) , STRING_7 , STRING_8 ) , METHOD_12 ( client . METHOD_3 ( IDENT_4 ) , STRING_9 , STRING_10 ) ) ; METHOD_13 ( ) ; } else { message = STRING_11 ; } return message ; }
org . junit . Assert . assertEquals ( java . lang . String . format ( STRING_6 , METHOD_11 ( IDENT_0 , STRING_7 , STRING_8 ) , METHOD_12 ( map , STRING_9 , STRING_6 0 ) ) , result )