METHOD_0 ( ) { java . lang . String IDENT_0 = STRING_0 ; java . util . HashMap < java . lang . String , java . lang . String > IDENT_1 = new java . util . HashMap < java . lang . String , java . lang . String > ( ) ; try { int result = org . apache . hadoop . yarn . service . client . IDENT_2 . IDENT_3 . METHOD_1 ( IDENT_0 , IDENT_1 ) ; "<AssertPlaceHolder>" ; } catch ( java . io . IOException | org . apache . hadoop . yarn . exceptions . IDENT_4 e ) { org . junit . Assert . fail ( ) ; } } METHOD_1 ( java . lang . String , java . util . Map ) { int result = IDENT_5 ; try { org . apache . hadoop . yarn . service . api . records . IDENT_6 service = new org . apache . hadoop . yarn . service . api . records . METHOD_2 ( ) ; service . setName ( IDENT_0 ) ; service . METHOD_3 ( IDENT_7 . IDENT_8 ) ; for ( Map . Entry < java . lang . String , java . lang . String > entry : IDENT_1 . entrySet ( ) ) { org . apache . hadoop . yarn . service . api . records . IDENT_9 component = new org . apache . hadoop . yarn . service . api . records . METHOD_4 ( ) ; component . setName ( entry . getKey ( ) ) ; java . lang . Long IDENT_10 = java . lang . Long . METHOD_5 ( entry . getValue ( ) ) ; component . METHOD_6 ( IDENT_10 ) ; service . METHOD_7 ( component ) ; } java . lang . String buffer = IDENT_11 . METHOD_8 ( service ) ; com . sun . jersey . api . client . IDENT_12 response = METHOD_9 ( METHOD_10 ( IDENT_0 ) ) . put ( com . sun . jersey . api . client . IDENT_12 . class , buffer ) ; result = METHOD_11 ( response ) ; } catch ( java . lang . Exception e ) { org . apache . hadoop . yarn . service . client . IDENT_13 . LOG . error ( STRING_1 , e ) ; result = IDENT_14 ; } return result ; }
org . junit . Assert . assertEquals ( org . apache . hadoop . yarn . service . client . IDENT_14 , result )