def METHOD_NAME(self):
    task = ProcessorTask.parse('sample-processor -I IN -O OUT -p %s' % self.param_fname)
    with self.assertRaisesRegex(Exception, r"Additional properties are not allowed \('foo' was unexpected\)"):
        task.validate()