// make sure converter does not get called for conversion
replay(converter);
BindableBean form = new BindableBean();
TargetBean targetBean = new TargetBean();
form.setTargetBean(targetBean);
handler.bindInwards(form, form, 4);
verify(converter);
reset(converter);
replay(converter);
handler.bindInwards(form, form, ConversionState.NULL);
Assert.assertEquals(targetBean.getIntegerProperty(), null);
verify(converter);
reset(converter);
expect(converter.toTargetType(null)).andReturn(null);
replay(converter);
handler.bindInwards(form, form, ConversionState.FAILURE);
Assert.assertEquals(targetBean.getIntegerProperty(), null);
verify(converter);
}