For JUnit testing I like to use Dumbster. It sets up a nice little server in your unit tests that holds the messages you send so you can then use JUnit assertions to validate your code is sending the right thing.
dustmachine
2009-07-10 14:25:33