ComponentResources resources = newComponentResources(bean);
Location l = mockLocation();
replay();
Binding binding = factory.newBinding("test binding", resources, null, "stringHolder.value", l);
assertSame(binding.getBindingType(), String.class);
bean.getStringHolder().setValue("first");
assertEquals(binding.get(), "first");
binding.set("second");
assertEquals(bean.getStringHolder().getValue(), "second");
assertEquals(binding.toString(), "PropBinding[test binding foo.Bar:baz(stringHolder.value)]");
verify();
}