Refactor Your Way to a Dependency Injection Container

It sounds like your JMock-like DSL removes some duplication related to the cascading `new`s. I would certainly do that, if I didn't externalise everything to a file. I like how Spring tried to do this, before people decided they wanted to program in XML.