Demystifying the Dependency Inversion Principle

(1) Wrong "Spring". I was thinking of the Enterprise Java one, so ignore my comment entirely. (2) I write few tests that depend on the framework (example: Rails) precisely so that I don't have to run the framework in its container to check my stuff.