Work around the fact that AssertionError(String message, Throwable cause) is a Java 1.7-only API.