### Question:
EntandoMessageCodesResolver extends DefaultMessageCodesResolver { @Override public String[] resolveMessageCodes(String errorCode, String objectName, String field, Class<?> fieldType) { Set<String> codeList = new LinkedHashSet<String>(); List<String> fieldList = new ArrayList<String>(); buildFieldList(field, fieldList); addCodes(codeList, errorCode, objectName, fieldList); int dotIndex = field.lastIndexOf('.'); if (dotIndex != -1) { buildFieldList(field.substring(dotIndex + 1), fieldList); } addCodes(codeList, errorCode, null, fieldList); if (fieldType != null) { addCode(codeList, errorCode, null, fieldType.getName()); } addCode(codeList, errorCode, null, null); if (this.getValidationErrorCodeMapping().containsKey(errorCode)) { addCode(codeList, this.getValidationErrorCodeMapping().get(errorCode), null, null); } return StringUtils.toStringArray(codeList); }  @Override String[] resolveMessageCodes(String errorCode, String objectName, String field, Class<?> fieldType); Map<String, String> getValidationErrorCodeMapping(); void setValidationErrorCodeMapping(Map<String, String> validationErrorCodeMapping); static final String ERR_CODE_URI_PARAMETER; }### Answer:
@Test public void testResolveCode() { String[] codes = messageCodesResolver.resolveMessageCodes("Size", "test"); assertThat(codes[codes.length - 1], is("52")); }