We must now assert directly against the expected type as the concrete error is returned, rather than simply the code.