DateTime dateTime = new DateTime(2012, 8, 21, 6, 35, 0, DateTimeZone.UTC);
Calendar calendar = Calendar.getInstance();
calendar.setTimeZone(TimeZone.getTimeZone("UTC"));
calendar.setTimeInMillis(dateTime.getMillis());
Criteria criteria = new Criteria("dateField").is(calendar.getTime());
Assert.assertEquals("dateField:2012\\-08\\-21T06\\:35\\:00.000Z",
queryParser.createQueryStringFromCriteria(criteria));
}