update assertion to be compatible with IBM JVM