Guice + EasyMock = Flexible Testable Code

Dependency injection and mock object testing are great practices on their own.  When used together your code ends up being very flexible and testable.  In this article we’ll use Guice and EasyMock. When you design your system to use DI you end up with lots of interfaces that provide specific services, concrete implementations of those…