JUnit: Test Exception Conditions With assertThrows() Make sure things go wrong the way they're supposed to go wrong.
Java Streams: Debug Your Code With peek() Get a sneak peek that will help you diagnose your problems.
MongoDB: How to Retrieve the Last N Documents From a Collection Looking to get the last few? I feel ya.