Validate parser parameters.
Create and use mock expression factory.