METHOD_0 ( ) { org . apache . hadoop . hive . IDENT_0 . api . IDENT_1 database = new org . apache . hadoop . hive . IDENT_0 . api . METHOD_1 ( ) ; database . setName ( com . IDENT_2 . IDENT_3 . IDENT_4 . server . IDENT_5 . IDENT_6 ) ; org . apache . hadoop . hive . IDENT_0 . api . METHOD_1 IDENT_7 = new org . apache . hadoop . hive . IDENT_0 . api . METHOD_1 ( ) ; IDENT_7 . setName ( STRING_0 ) ; when ( IDENT_8 . METHOD_2 ( com . IDENT_2 . IDENT_3 . IDENT_4 . server . IDENT_5 . IDENT_6 ) ) . thenReturn ( STRING_1 ) ; when ( IDENT_9 . METHOD_0 ( STRING_1 ) ) . thenReturn ( database ) ; when ( IDENT_8 . METHOD_3 ( database ) ) . thenReturn ( IDENT_7 ) ; org . apache . hadoop . hive . IDENT_0 . api . METHOD_1 result = handler . METHOD_0 ( com . IDENT_2 . IDENT_3 . IDENT_4 . server . IDENT_5 . IDENT_6 ) ; "<AssertPlaceHolder>" ; } METHOD_0 ( java . lang . String ) { com . IDENT_2 . IDENT_3 . IDENT_4 . server . IDENT_10 . LOG . info ( STRING_2 , name ) ; com . IDENT_2 . IDENT_3 . IDENT_4 . mapping . model . IDENT_11 mapping = IDENT_12 . METHOD_4 ( name ) ; com . IDENT_2 . IDENT_3 . IDENT_4 . server . IDENT_10 . LOG . info ( STRING_3 , mapping . METHOD_5 ( ) ) ; return mapping . METHOD_3 ( mapping . METHOD_6 ( ) . METHOD_0 ( mapping . METHOD_2 ( name ) ) ) ; }
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( IDENT_7 ) )