@Test
public void itShouldMatchFieldName() {

	ValidationAPI validationAPI = new ValidationAPI(
			"StringFunctions.stringMatch(f2,DateFunctions.getStringDateFromDateObject(f1, \"\"))?1:0", "");
	Map<String, Class<?>> schemaFields = new HashMap<String, Class<?>>();
	schemaFields.put("f1", Date.class);
	schemaFields.put("f2", String.class);
	schemaFields.put("f3", Date.class);
	List<String> fieldList = validationAPI.getFieldNameList(schemaFields);
	Assert.assertEquals("f1", fieldList.get(0));
}