ModelUtils { public static String getBoxedClassName(ParameterField parameterField) { return parameterField.getDataType() == null ? Object.class.getName() : getBoxedClassName(parameterField.getDataType()); } private  ModelUtils(); static Optional<String> getTargetFieldName(DataDictionary dataDictionary, Model model); static DATA_TYPE getTargetFieldType(DataDictionary dataDictionary, Model model); static List<KiePMMLNameOpType> getTargetFields(DataDictionary dataDictionary, Model model); static Map<String, DATA_TYPE> getTargetFieldsTypeMap(DataDictionary dataDictionary, Model model); static OP_TYPE getOpType(DataDictionary dataDictionary, Model model, String targetFieldName); static DATA_TYPE getDataType(DataDictionary dataDictionary, String targetFieldName); static String getBoxedClassName(ParameterField parameterField); static String getBoxedClassName(DataType dataType);  }
@Test public void getBoxedClassNameByDataTypes() { List<DataType> dataTypes = getDataTypes(); dataTypes.forEach(dataType -> { String retrieved = ModelUtils.getBoxedClassName(dataType); commonVerifyEventuallyBoxedClassName(retrieved, dataType); }); }