}
};
Parameter<?> parameter = new DefaultParameter("foo").configuredBy(validator).configuredBy(converter);
Object value = parameter.getConverter().convert(new MockRewrite(), new MockEvaluationContext(), new Object());
@SuppressWarnings("unchecked")
boolean valid = ((Validator<Object>) parameter.getValidator()).isValid(new MockRewrite(),
new MockEvaluationContext(), value);
Assert.assertTrue(validated);
Assert.assertFalse(valid);
Assert.assertTrue(converted);