@Test
public void testResetTimeToMidnight() throws DatatypeConfigurationException
{

    XMLGregorianCalendar gregorianCalendar = DatatypeFactory.newInstance().newXMLGregorianCalendar("2015-12-21T21:32:52");
    Timestamp result = HerdDateUtils.resetTimeToMidnight(gregorianCalendar);
    assertEquals(Timestamp.valueOf("2015-12-21 00:00:00.0"), result);
}