@Test
public void testOrderedIndex() throws Exception {

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