for (PropertyDescriptor element : propertyDesc) {
if (element.getName().equals("class")) {
assertNull(element.getWriteMethod());
assertNotNull(element.getReadMethod());
} else {
IndexedPropertyDescriptor indexedDesc = (IndexedPropertyDescriptor) element;
assertEquals("fox501", element.getName());
assertEquals(String[].class.getName(), element
.getPropertyType().getName());
assertNull(element.getWriteMethod());
assertNotNull(element.getReadMethod());
assertNull(indexedDesc.getIndexedReadMethod());
assertNotNull(indexedDesc.getIndexedWriteMethod());
assertEquals(String.class.getName(), indexedDesc
.getIndexedPropertyType().getName());
}
}
}