concept Least knowledge in category java
appears as: Least Knowledge

This is an excerpt from Manning's book JUnit in Action, Second Edition.
The proper solution is to apply the Principle of Least Knowledge and pass references to methods and constructors only when we need to do so. In our example, we should pass the Driver to the Car constructor, as in the following: