cliService.init(hconf);
ThriftCLIService tcliService = new ThriftCLIService(cliService);
TOpenSessionReq req = new TOpenSessionReq();
req.setUsername("testuser1");
SessionHandle sHandle = tcliService.getSessionHandle(req );
SessionManager sManager = getSessionManager(cliService.getServices());
HiveSession session = sManager.getSession(sHandle);
//Proxy class for doing doAs on all calls is used when doAs is enabled
// and kerberos security is on
assertTrue("check if session class is a proxy", session instanceof java.lang.reflect.Proxy);
}