A standard software engineering practice in Java and other languages is to use a unit testing framework like JUnit and develop tests in a separate file that exercise the public API of the class being tested. While this is a fine practice, I tend to embed a lot of tests directly in classes. This way, …