Q:

How to mock third party API via EasyMock?

How to mock third party API via EasyMock ?
Ex:
2 classes - Employee - our class, NPECustomer - Third Party class
Assume Employee has createCustomer method with the following code
createCustomer(Employee emp) {
NPECustomer customer = new NPECustomer();
customer.add
customer.finalize
more customer. method and it goes on...

Now the question is how to mock third party API via easy Mock
What are the alternate ways to solve the above problem if Mocking the third party API is not feasible or tedious

A:

Mocking can be done for any object. for third party ad servers we can start mock servers. This resolves the problem.

