/* Java application whose purpose is to abort due to an AssertionError, ** thereby allowing the programmer to verify that assertion testing has ** been enabled. */ public class AssertTest { public static void main(String[] args) { System.out.println("About to make a false assertion..."); assert false : "This message should appear"; System.out.println("If this message appears, " + "assertions are not enabled."); } }