ClassMap { String provideAlternateName(String fieldName) { return fieldName.substring(0, 1).toLowerCase() + fieldName.substring(1); } ClassMap(Configuration globalConfiguration); List<FieldMap> getFieldMaps(); boolean isStopOnErrors(); void setStopOnErrors(Boolean stopOnErrors); boolean isTrimStrings(); void setTrimStrings(Boolean trimStrings); List<Class<RuntimeException>> getAllowedExceptions(); void setAllowedExceptions(List<Class<RuntimeException>> allowedExceptions); FieldMap getFieldMapUsingDest(String destFieldName); FieldMap getFieldMapUsingDest(String destFieldName, boolean isMap); FieldMap getFieldMapUsingSrc(String srcFieldName); void setFieldMaps(List<FieldMap> fieldMaps); void addFieldMapping(FieldMap fieldMap); void removeFieldMapping(FieldMap fieldMap); boolean isWildcard(); void setWildcard(Boolean wildcardPolicy); boolean isWildcardCaseInsensitive(); void setWildcardCaseInsensitive(Boolean wildcardCaseInsensitive); MappingDirection getType(); void setType(MappingDirection type); String getDateFormat(); void setDateFormat(String dateFormat); CustomConverterContainer getCustomConverters(); void setCustomConverters(CustomConverterContainer customConverters); Class<?> getSrcClassToMap(); Class<?> getDestClassToMap(); boolean isDestMapNull(); boolean isSrcMapNull(); boolean isDestMapEmptyString(); boolean isSrcMapEmptyString(); String getDestClassBeanFactory(); String getSrcClassBeanFactory(); String getDestClassBeanFactoryId(); String getSrcClassBeanFactoryId(); String getSrcClassMapGetMethod(); String getSrcClassMapSetMethod(); String getDestClassMapGetMethod(); String getDestClassMapSetMethod(); String getDestClassCreateMethod(); String getSrcClassCreateMethod(); void setSrcClassCreateMethod(String createMethod); void setDestClassCreateMethod(String createMethod); boolean isDestClassMapTypeCustomGetterSetter(); boolean isSrcClassMapTypeCustomGetterSetter(); void setSrcClass(DozerClass srcClass); void setDestClass(DozerClass destClass); String getDestClassName(); String getSrcClassName(); String getBeanFactory(); void setBeanFactory(String beanFactory); String getMapId(); void setMapId(String mapId); void setMapNull(boolean mapNull); void setMapEmptyString(boolean mapEmptyString); Configuration getGlobalConfiguration(); void setGlobalConfiguration(Configuration globalConfiguration); RelationshipType getRelationshipType(); void setRelationshipType(RelationshipType relationshipType); DozerClass getSrcClass(); DozerClass getDestClass(); @Override String toString();  }
@Test public void testProvideAlternateName() { assertEquals("field1", classMap.provideAlternateName("Field1")); }