@Test
public void testDatetimeIndexForOneField() throws Exception {

    IObject options = new DSObject("{ \"datetime\": \"a\" }");
    IndexCreators.writeIndexes(body, collection, options);
    assertEquals("CREATE INDEX ON test_collection USING BTREE ((parse_timestamp_immutable(document#>'{a}')));\n",
            body.toString());
}