Testing Java Exceptions and Assertions