RequestParameter requestParam = RequestParameter.matchesAll("{name}", "{value}");
MockEvaluationContext context = new MockEvaluationContext();
ParameterUtils.initialize(context, requestParam);
ParameterStore store = DefaultParameterStore.getInstance(context);
((ParameterConfiguration<?>) store.get("name")).constrainedBy(new RegexConstraint("nothing"));
Assert.assertFalse(requestParam.evaluate(rewrite, new MockEvaluationContext()));
}