ODocument doc2 = new ODocument(database, "Order");
doc2.field("context", "test");
doc2.field("date", System.currentTimeMillis());
doc2.save();
doc2.reload();
Assert.assertTrue(doc2.field("date", OType.DATE) instanceof Date);
doc2.reload();
Assert.assertTrue(doc2.field("date", Date.class) instanceof Date);