Master exception testing in JUnit with assertThrows() and legacy methods. Learn best practices, patterns, and avoid common pitfalls in exception verification.