This needs to expect Exception.class. Otherwise it won't pass on WildFly where we do not have an exception transformer yet.