test if the authorization factory gets the username provided by the authenticator , if sesstionstate is created without username concode_field_sep String username concode_field_sep HiveAuthorizer createHiveAuthorizer concode_elem_sep void setupDataNucleusFreeHive concode_elem_sep void setup concode_elem_sep void testSessionConstructorUser concode_elem_sep HiveConf getAuthV2HiveConf
void function ( ) { SessionState loc0 = new SessionState ( getAuthV2HiveConf ( ) ) ; setupDataNucleusFreeHive ( loc0 . getConf ( ) ) ; SessionState . start ( loc0 ) ; Assert . assertEquals ( "srini_string" , loc0 . getAuthenticator ( ) . getUserName ( ) , HiveAuthorizerStoringUserNameFactory . username ) ; }