METHOD_0 ( ) { org . apache . hadoop . hive . IDENT_0 . api . IDENT_1 IDENT_2 = new org . apache . hadoop . hive . IDENT_0 . api . METHOD_1 ( ) ; IDENT_2 . METHOD_2 ( com . IDENT_3 . IDENT_4 . IDENT_5 . server . IDENT_6 . IDENT_7 ) ; org . apache . hadoop . hive . IDENT_0 . api . METHOD_1 IDENT_8 = new org . apache . hadoop . hive . IDENT_0 . api . METHOD_1 ( ) ; IDENT_8 . METHOD_2 ( com . IDENT_3 . IDENT_4 . IDENT_5 . server . IDENT_6 . IDENT_7 ) ; java . util . List < org . apache . hadoop . hive . IDENT_0 . api . METHOD_1 > IDENT_9 = com . google . common . collect . Lists . newArrayList ( new org . apache . hadoop . hive . IDENT_0 . api . METHOD_1 ( ) ) ; java . util . List < org . apache . hadoop . hive . IDENT_0 . api . METHOD_1 > IDENT_10 = com . google . common . collect . Lists . newArrayList ( IDENT_2 , IDENT_8 ) ; when ( IDENT_11 . METHOD_3 ( IDENT_10 ) ) . thenReturn ( IDENT_9 ) ; when ( IDENT_12 . METHOD_0 ( IDENT_9 ) ) . thenReturn ( 2 ) ; int result = handler . METHOD_0 ( IDENT_10 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_11 , times ( 2 ) ) . METHOD_4 ( com . IDENT_3 . IDENT_4 . IDENT_5 . server . IDENT_6 . IDENT_7 ) ; } METHOD_0 ( java . util . List ) { if ( ! ( IDENT_13 . isEmpty ( ) ) ) { com . IDENT_3 . IDENT_4 . IDENT_5 . mapping . model . IDENT_14 mapping = IDENT_15 . METHOD_5 ( IDENT_13 . get ( 0 ) . METHOD_6 ( ) ) ; for ( org . apache . hadoop . hive . IDENT_0 . api . METHOD_1 IDENT_16 : IDENT_13 ) { mapping . METHOD_4 ( IDENT_16 . METHOD_6 ( ) ) ; } return mapping . METHOD_7 ( ) . METHOD_0 ( mapping . METHOD_3 ( IDENT_13 ) ) ; } return 0 ; }
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( 2 ) )