METHOD_0 ( ) { org . apache . hadoop . mapreduce . IDENT_0 . Context context = mock ( IDENT_0 . Context . class ) ; org . apache . hadoop . mapreduce . IDENT_1 IDENT_2 = new org . apache . hadoop . mapreduce . METHOD_1 ( ) ; org . apache . hadoop . mapreduce . IDENT_3 IDENT_4 = IDENT_2 . METHOD_2 ( IDENT_5 . IDENT_6 ) ; when ( context . METHOD_3 ( IDENT_5 . IDENT_6 ) ) . thenReturn ( IDENT_4 ) ; co . IDENT_7 . IDENT_8 . IDENT_9 . IDENT_10 < org . apache . hadoop . io . IDENT_11 , java . lang . String > mapper = new co . IDENT_7 . IDENT_8 . IDENT_9 . IDENT_10 < org . apache . hadoop . io . IDENT_11 , java . lang . String > ( ) ; org . apache . hadoop . io . IDENT_11 key = new org . apache . hadoop . io . METHOD_4 ( STRING_0 ) ; java . lang . String val = STRING_1 ; mapper . map ( key , val , context ) ; co . IDENT_7 . IDENT_8 . IDENT_9 . IDENT_12 < org . apache . hadoop . io . METHOD_4 > IDENT_13 = new co . IDENT_7 . IDENT_8 . IDENT_9 . IDENT_12 < org . apache . hadoop . io . METHOD_4 > ( ) ; IDENT_13 . METHOD_5 ( key ) ; verify ( context ) . write ( IDENT_13 , val ) ; "<AssertPlaceHolder>" ; } write ( IDENT_14 , IDENT_15 ) { METHOD_6 ( value ) ; out . write ( co . IDENT_7 . IDENT_8 . mapreduce . lib . output . IDENT_16 . IDENT_17 . IDENT_18 ) ; }
org . junit . Assert . assertEquals ( 1 , context . METHOD_3 ( IDENT_5 . IDENT_6 ) . getValue ( ) )