@Test
public void testTagsIndexForOneField() throws Exception {

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