public void testConversionFailure() throws ConversionException
{
Map validators = createStrictMock(Map.class);
Set keys = createStrictMock(Set.class);
Iterator iterator = createStrictMock(Iterator.class);
OrderedProperty op = createStrictMock(OrderedProperty.class);
MethodValidators methodValidators = createStrictMock(MethodValidators.class);
Converter converter = createStrictMock(Converter.class);
ValidationInfo vi = new ValidationInfo(validators, handler, new DefaultConversionHandler());
expect(validators.keySet()).andReturn(keys);
expect(keys.iterator()).andReturn(iterator);
expect(iterator.hasNext()).andReturn(true);
expect(iterator.next()).andReturn(op);
expect(validators.get(op)).andReturn(methodValidators);
expect(methodValidators.getRequiresConversion()).andReturn(true);
expect(methodValidators.getConverter()).andReturn(converter);
expect(op.getPropertyName()).andReturn("dateValue");
expect(converter.toTargetType(null)).andThrow(new ConversionRuntimeException(null));
expect(iterator.hasNext()).andReturn(false);
HashMap<String, Object> map = new HashMap<String, Object>();
map.put("dateValue", ConversionState.FAILURE);
// expect validationStrategy to be called