private void simplePropertyTest(Object bean, PropertyDescriptor descriptor, Method readMethod, Method writeMethod)
throws Exception {
Class propertyType = descriptor.getPropertyType();
InstanceFactory instances = (InstanceFactory) factoryMap.get(propertyType);
if (instances == null) {
instances = new NestedBeanInstanceFactory(propertyType);
}
Object obj;
Object invoke;
for (Iterator it = instances.iterator(); it.hasNext(); Assert.assertEquals("Property:" + descriptor.getDisplayName(), obj,
invoke)) {