101102103104105106107108109110111
} catch (NullPointerException e) { fail("NullPointerException was not expected"); } bag.clear(); if (bag.getRandomLetter() == null) { System.out.println("Can't get a letter from empty bag"); } else { fail("null was expected");