The document discusses when and how to include database access in automated tests, providing alternatives like using mock objects or resetting test data. It demonstrates techniques for resetting test databases using tools like DbUnit or transaction rollbacks. The main considerations are balancing test speed versus fully testing database interactions while maintaining independent, repeatable tests.