private static String prepareExceptionMessage(Method method, Object[] args) {
        StringBuffer message = new StringBuffer("Illegal object type for the method '" + method.getName() + "'. \n ");
        message.append("Expected types: \n");
        for (Class<?> type : method.getParameterTypes()) {
            message.append(type.getName());
        }
        message.append("\n Actual types: \n");
        for (Object param : args) {
            message.append(param.getClass().getName());
        }
        return message.toString();
    }
Find a method with concrete string representation of it's parameters

@param clazz         clazz to search
@param methodName    name of method with representation of it's parameters
@param beanContainer beanContainer instance
@return found method
@throws NoSuchMethodException if no method found
core/src/main/java/com/github/dozermapper/core/util/ReflectionUtils.java