map.put("trombones", "3");
}
public void testBeanPropertiesOnAProxy() throws Exception
{
OrangeInterface o = (OrangeInterface)Proxy.newProxyInstance(getClass().getClassLoader(),
new Class[]{OrangeInterface.class}, new OrangeInvocationHandler(new Orange()));
BeanUtils.populateWithoutFail(o, map, true);
assertNotNull(o);
assertEquals("Juicy!", o.getBrand());
assertEquals(new Double(2.32), o.getRadius());
assertEquals(new Integer(22), o.getSegments());
}