1. Is the line above meant to say "SenderImplTest.class", which is the real name of your test case? Personally since JUnit 3.8.1, I never put the main() method or a "String name" constructor into my test cases, they are just not necessary any more.
Originally Posted by avakali
2. Is there some reason why you're extending AbstractDependencyInjectionSpringContextTests? It's a good superclass for writing functional tests, but not necessary for writing pure unit tests. If you're only trying to do the latter, then simply extend JUnit's TestCase class, and pass mock objects to the DI setters of your POJO. I use EasyMock to create the mocks, but any similar tool would do (just don't write your own mocks, they are too much work to maintain, especially if they are to have all the cool verification features that you get out of the box with EasyMock etc.).
"Now is the EJB of our discontent made glorious Spring"