METHOD_0 ( ) { org . apache . hadoop . yarn . event . IDENT_0 IDENT_1 = new org . apache . hadoop . yarn . event . METHOD_1 ( ) ; org . apache . hadoop . yarn . server . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 IDENT_3 = new org . apache . hadoop . yarn . server . IDENT_2 . IDENT_3 . IDENT_4 . METHOD_2 ( ) ; org . apache . hadoop . yarn . server . IDENT_2 . IDENT_6 . IDENT_7 writer = mock ( org . apache . hadoop . yarn . server . IDENT_2 . IDENT_6 . IDENT_7 . class ) ; org . apache . hadoop . yarn . server . IDENT_2 . IDENT_8 IDENT_9 = new org . apache . hadoop . yarn . server . IDENT_2 . METHOD_3 ( IDENT_1 , null , null , null , null , null , null , null , null , IDENT_3 ) ; ( ( org . apache . hadoop . yarn . server . IDENT_2 . METHOD_3 ) ( IDENT_9 ) ) . METHOD_4 ( mock ( org . apache . hadoop . yarn . server . IDENT_2 . metrics . IDENT_10 . class ) ) ; org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; ( ( org . apache . hadoop . yarn . server . IDENT_2 . METHOD_3 ) ( IDENT_9 ) ) . METHOD_5 ( IDENT_3 ) ; IDENT_3 . METHOD_6 ( IDENT_9 ) ; IDENT_3 . init ( conf ) ; IDENT_3 . start ( ) ; IDENT_3 . METHOD_7 ( conf , IDENT_9 ) ; org . apache . hadoop . yarn . server . IDENT_2 . IDENT_3 . IDENT_11 metrics = IDENT_3 . METHOD_8 ( ) ; int IDENT_12 = metrics . METHOD_9 ( ) ; org . apache . hadoop . yarn . api . records . IDENT_13 IDENT_14 = org . apache . hadoop . yarn . server . utils . IDENT_15 . METHOD_10 ( 200 , 1 ) ; org . apache . hadoop . yarn . api . records . IDENT_16 IDENT_17 = org . apache . hadoop . yarn . server . utils . IDENT_15 . METHOD_11 ( IDENT_14 , 1 ) ; org . apache . hadoop . yarn . server . IDENT_2 . IDENT_3 . event . IDENT_18 IDENT_19 = new org . apache . hadoop . yarn . server . IDENT_2 . IDENT_3 . event . METHOD_12 ( IDENT_14 , STRING_0 , STRING_1 ) ; IDENT_3 . METHOD_13 ( IDENT_19 ) ; org . apache . hadoop . yarn . server . IDENT_2 . IDENT_3 . event . IDENT_18 IDENT_20 = new org . apache . hadoop . yarn . server . IDENT_2 . IDENT_3 . event . METHOD_14 ( IDENT_17 , false ) ; IDENT_3 . METHOD_13 ( IDENT_20 ) ; IDENT_17 = org . apache . hadoop . yarn . server . utils . IDENT_15 . METHOD_11 ( IDENT_14 , 2 ) ; org . apache . hadoop . yarn . server . IDENT_2 . IDENT_3 . event . IDENT_18 IDENT_21 = new org . apache . hadoop . yarn . server . IDENT_2 . IDENT_3 . event . METHOD_14 ( IDENT_17 , false ) ; IDENT_3 . METHOD_13 ( IDENT_21 ) ; int IDENT_22 = metrics . METHOD_9 ( ) ; "<AssertPlaceHolder>" ; IDENT_3 . METHOD_15 ( ) ; } METHOD_9 ( ) { return IDENT_23 . value ( ) ; }
org . junit . Assert . assertEquals ( 1 , ( IDENT_22 - IDENT_12 ) )