def METHOD_NAME(self):
    invalid_connector = SamConnector("foo")
    invalid_connector.Destination = {"Id": "MyTable"}
    invalid_connector.Permissions = ["Read"]
    with self.assertRaises(
        InvalidResourceException,
    ):
        invalid_connector.validate_properties_and_return_model(ConnectorProperties)
        self.assertRegex(".+Property 'Source'.+ is invalid.")