@Test
public static void testParsing() throws Exception {

   String aDate=date.toString();
   // checking if the returned value is the one expected for string and date types.
   Object convertedDate = ConstraintValueParser.parse(aDate, Date.class);
   assertEquals("qq", aDate, convertedDate);
   Object converted = ConstraintValueParser.parse(DATE_STRING, String.class);
    assertEquals("qq", DATE_STRING, converted);
}