JUnit Integration Test and Exception Handling