I'm trying to unit test my seam components, and so far I've been doing pretty well with the EasyMock that my team has been using.
However, I have run into a wall with javax.faces.context.ExternalContext.
Since it's not an interface, I can't run EasyMock.createMock() on it.
Seam has a MockExternalContext, but I have no idea how to use it.
A simple example would be most helpful, but I will also consider passionate cases for alternative mock frameworks.