Use `assertThrows`