DictionaryValidationResult dictionaryValidationResult = new DictionaryValidationResult();
dictionaryValidationResult.setErrorLevel(ErrorLevel.NOCONSTRAINT);
ValidCharactersConstraintProcessor processor = new ValidCharactersConstraintProcessor();
// setup mocks
Config config = mock(Config.class);
final String dtFormat = "dd MMM yyyy hh:mm a";
when(config.getProperty(CoreConstants.STRING_TO_DATE_FORMATS))
.thenReturn(dtFormat);
ConfigContext.overrideConfig(Thread.currentThread()
.getContextClassLoader(), config);
DateTimeService dtSvc = mock(DateTimeService.class);
SimpleDateFormat sdf = new SimpleDateFormat(dtFormat);