String dateAsString = database.getStorage().getConfiguration().getDateFormatInstance().format(begin);
ODocument doc = new ODocument(database, "Order");
doc.field("context", "testPrecision");
doc.field("date", new Date(), OType.DATE);
doc.save();
List<ODocument> result = database.command(
new OSQLSynchQuery<ODocument>("select * from Order where date >= ? and context = 'testPrecision'")).execute(dateAsString);
Assert.assertEquals(result.size(), 1);