METHOD_0 ( ) { conf . METHOD_1 ( IDENT_0 . IDENT_1 . IDENT_2 , STRING_0 ) ; javax . IDENT_3 . IDENT_4 < javax . IDENT_3 . directory . IDENT_5 > IDENT_6 = METHOD_2 ( ) ; javax . IDENT_3 . IDENT_4 < javax . IDENT_3 . directory . IDENT_5 > IDENT_7 = METHOD_3 ( STRING_1 ) ; when ( ctx . search ( anyString ( ) , anyString ( ) , any ( javax . IDENT_3 . directory . IDENT_8 . class ) ) ) . thenReturn ( IDENT_7 ) . thenReturn ( IDENT_6 ) ; search = new org . apache . hive . service . auth . ldap . METHOD_4 ( conf , ctx ) ; java . lang . String expected = STRING_1 ; java . lang . String actual = search . METHOD_5 ( STRING_2 ) ; "<AssertPlaceHolder>" ; verify ( ctx ) . search ( eq ( STRING_3 ) , contains ( STRING_4 ) , any ( javax . IDENT_3 . directory . IDENT_8 . class ) ) ; } METHOD_5 ( java . lang . String ) { java . util . List < java . lang . String > IDENT_9 ; if ( org . apache . hive . service . auth . ldap . IDENT_10 . METHOD_6 ( user ) ) { java . lang . String IDENT_11 = org . apache . hive . service . auth . ldap . IDENT_10 . METHOD_7 ( user ) ; java . lang . String IDENT_12 = org . apache . hive . service . auth . ldap . IDENT_10 . METHOD_8 ( user ) ; IDENT_9 = execute ( java . util . Collections . singletonList ( IDENT_11 ) , IDENT_13 . METHOD_9 ( IDENT_12 ) ) . METHOD_10 ( ) ; } else { IDENT_9 = METHOD_11 ( IDENT_14 , user ) ; if ( IDENT_9 . isEmpty ( ) ) { IDENT_9 = execute ( IDENT_15 , IDENT_13 . METHOD_12 ( user ) ) . METHOD_10 ( ) ; } } if ( ( IDENT_9 . size ( ) ) == 1 ) { return IDENT_9 . get ( 0 ) ; } else { org . apache . hive . service . auth . ldap . METHOD_4 . LOG . info ( STRING_5 , user , IDENT_9 . size ( ) ) ; org . apache . hive . service . auth . ldap . METHOD_4 . LOG . debug ( STRING_6 , IDENT_9 ) ; return null ; } }
org . junit . Assert . assertEquals ( expected , actual )