MapPropertyDescriptor extends GetterSetterPropertyDescriptor { @Override protected Method getReadMethod() { if (MappingUtils.isBlankOrNull(getMethodName)) { throw new MappingException("Custom Map get method not specified for field mapping to class: " + clazz + ". Perhaps the map-get-method wasn't specified in the dozer mapping file?"); } if (readMethod == null || readMethod.get() == null) { Method method = findMapMethod(clazz, getMethodName, 1); readMethod = new SoftReference<>(method); } return readMethod.get(); } MapPropertyDescriptor(Class<?> clazz, String fieldName, boolean isIndexed, int index, String setMethod, String getMethod,
                                 String key, HintContainer srcDeepIndexHintContainer, HintContainer destDeepIndexHintContainer,
                                 BeanContainer beanContainer, DestBeanCreator destBeanCreator); @Override Method getWriteMethod(); @Override void setPropertyValue(Object bean, Object value, FieldMap fieldMap);  }
@Test public void testGetReadMethod() { Method method = descriptor.getReadMethod(); assertEquals(1, method.getParameterTypes().length); assertTrue(Arrays.equals(new Class[] {String.class}, method.getParameterTypes())); }