ofm = context.findGetter("otherString");
assertEquals("other", ofm.getMethod().invoke(ofm.getObject(), (Object[])null));
}
public void testSetterIndex() throws IllegalArgumentException, IllegalAccessException, InvocationTargetException {
BindingContext context = new BindingContext(this);
assertNull(context.findSetter("simpleString"));
ObjectFieldMethod ofm = context.findSetter("model1.simpleString");
ofm.getMethod().invoke(ofm.getObject(), new Object[] { "set1" });
assertEquals("set1", model1.getSimpleString());
ofm = context.findSetter("model2.simpleString");
ofm.getMethod().invoke(ofm.getObject(), new Object[] { "set2" });
assertEquals("set2", model2.getSimpleString());
ofm = context.findSetter("otherString");
ofm.getMethod().invoke(ofm.getObject(), new Object[] { "setOther" });
assertEquals("setOther", model.getOtherString());
}