How can I mock the cast operation. I have an cast operation on a dependent object , which will cast to another dependent object like
SqlMapClient sqlMapClient;
SqlMapClientImpl sqlMapClientImpl = (SqlMapClientImpl) sqlMapClient
I'm mocking both the dependent clesses i.e SqlMapClient
and SqlMapClientImpl
.But I need to know how to mock cast using EasyMock.
Any help would be appreciated.