Write test cases for the `isValid(...)` method
Write test cases for the
isValid(...)method