### Question:
IncomingMessageFormParameterValidatorImpl implements IncomingMessageFormParameterValidator { public boolean validate(IncomingMessageFormParameter param) { if (!param.getMessageFormParamStatus().equals(IncMessageFormParameterStatus.NEW)) { return param.getMessageFormParamStatus().equals(IncMessageFormParameterStatus.VALID); } String paramRegex = getParamTypeMap().get(param.getIncomingMsgFormParamDefinition().getParamType()); if (param.getIncomingMsgFormParamDefinition().getParamType().toUpperCase().equals("DATE")) { try { new SimpleDateFormat(paramRegex).parse(param.getValue()); param.setMessageFormParamStatus(IncMessageFormParameterStatus.VALID); } catch (ParseException ex) { param.setErrCode(1); param.setErrText("wrong format"); param.setMessageFormParamStatus(IncMessageFormParameterStatus.INVALID); } } else if (!Pattern.matches(paramRegex, param.getValue().trim())) { param.setErrCode(1); param.setErrText("wrong format"); param.setMessageFormParamStatus(IncMessageFormParameterStatus.INVALID); } else if (param.getValue().trim().length() > param.getIncomingMsgFormParamDefinition().getLength()) { param.setErrCode(2); param.setErrText("too long"); param.setMessageFormParamStatus(IncMessageFormParameterStatus.INVALID); } else { if(param.getIncomingMsgFormParamDefinition().getParamType().toUpperCase().equals("BOOLEAN")) param.setValue(param.getValue().toLowerCase().equals("y") ? "true" : "false"); else if(param.getIncomingMsgFormParamDefinition().getParamType().toUpperCase().equals("GENDER")) param.setValue(param.getValue().toLowerCase().equals("m") ? "MALE" : "FEMALE"); param.setMessageFormParamStatus(IncMessageFormParameterStatus.VALID); } param.setLastModified(new Date()); return param.getMessageFormParamStatus().equals(IncMessageFormParameterStatus.VALID); }  boolean validate(IncomingMessageFormParameter param); Map<String, String> getParamTypeMap(); void setParamTypeMap(Map<String, String> paramTypeMap);  }### Answer:
@Ignore @Test public void testValidate() { System.out.println("validate"); }