I am writing a testcase for a factory class. The factory (rather a Prototype pattern) returns types of matchers according to the factory parameters. The matchers returned ar