class BookTests{ // main test driver public static void main(String[] argv){ // Examples of books: Book dvc = new Book("DVC", "DB", 2003); Book mls = new Book("MLS", "PC", 2002); Book sn = new Book("SN", "AP", 2001); // display the values of Book instances System.out.println("Books: \n" + dvc.toString() + mls.toString() + sn.toString()); // run the tests and print the test results System.out.println( // test for the method before(int year) "Test before method in the class Book:" + "\n" + "before succeeds: " + (dvc.before(2004)) + "\n" + "before fails: " + (dvc.before(1990) == false) + "\n" // tests for other methods come here... ); } }