In the book (page 310), it shows that you include the package name when running code in a package. For example,
So you need to have chap6.AssertionTest.
Interesting,
you should get that same error even without the -ea flag because you are trying to run the class without a package name.