exampleSProcService.useDateParam(new Date(System.currentTimeMillis()));
// commented out, because date input parameters are not working at the moment
// exampleSProcService.useDateParam2(new Date(System.currentTimeMillis()));
final ExampleDomainObjectWithDate obj = new ExampleDomainObjectWithDate();
obj.setX("X");
String result = exampleSProcService.createOrUpdateObjectWithDate(obj);
assertNull(result);
final Date d = new Date(System.currentTimeMillis());
obj.setMyDate(d);
result = exampleSProcService.createOrUpdateObjectWithDate(obj);
assertEquals("X" + (new SimpleDateFormat("yyyy-MM-dd").format(d)), result);
final Timestamp t = new Timestamp(System.currentTimeMillis());
t.setNanos(123456789);
obj.setMyTimestamp(t);
result = exampleSProcService.createOrUpdateObjectWithDate(obj);
assertEquals("X" + (new SimpleDateFormat("yyyy-MM-dd").format(d)) + DateTimeUtil.format(t), result);
}