This will incorrectly pass if no exception is thrown.