Create mock based on ParameterBag for correctness.