Test Code for Java Exam 3