Homework assignment involving Java unit testing