JUnit: Test Exception Conditions With assertThrows() Make sure things go wrong the way they're supposed to go wrong.