@Test
public void testNewMethodValidatorsWithConvesion() throws Exception
{
Converter converter = createStrictMock(Converter.class);
List<ValidatorWrapper> list = new ArrayList<ValidatorWrapper>();
ValidatorWrapper v1 = getConvertableWrapper(Integer.class);
ValidatorWrapper v2 = getConvertableWrapper(Number.class);
ValidatorWrapper v3 = getConvertableWrapper(Object.class);
list.add(v1);
list.add(v2);
list.add(v3);
// record expectation
converter.setTargetClass(Integer.class);
replay(converter);
ValidationAnnotationReader reader = new ValidationAnnotationReader();
MethodValidators methodValidators = reader.newMethodValidators(this.getClass(), new OrderedProperty("prop", 1),