I am using PowerMock to mock a class having a method
it fails at the following line of code

getSession().createSQLQuery(sqlquerystr);
since i am unable to mock create the getSession() object

the getSession object is returning a session object from org.hibernate.Session.class
is there any manner in which one can directly mock the object returned by the getSession() method

for example using the Whitebox approach.

Thanks in advance.