My code takes an interface as input but only excercises a couple of the interface's methods (often, just getters).
When testing the code, I'd love to define an anonymous inner class that returns the test data. But what do I do about all the other methods that the interface requires?
I could use my IDE to auto-generate a stub for the interface but that seems fairly code-heavy.
What is the easiest way to stub the two methods I care about and none of the methods I don't?