@Test
public void testDatetimeIndex() throws Exception {

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