Hi All,
I have stateless session bean. In this bean I have method GetOrderData(int orderid) which uses DAO and queries database . I have to unit test this method. So how can i do that ?

How can i Mock DAO and result set returned by DAO ?

I am able to get the EJB but after that I dont know how to mock dao and resultset.