handler.setBeanPropertyName("domainClass");
handler.setBeanPropertyClass(Integer.class);
BindableBean form = new BindableBean();
Collection collection = new ArrayList();
collection.add(new DomainClass(1));
collection.add(new DomainClass(3));
collection.add(new DomainClass(4));
Map map = handler.getPropertyAsMap(collection);
form.setLookupMap(map);
TargetBean targetBean = new TargetBean();
form.setTargetBean(targetBean);
targetBean.setDomainClass(new DomainClass(4));
handler.bindOutwards(form, form);
Assert.assertEquals(form.getSelectedId(), "4");