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