@Test(expected = Exception.class)
public void testWrongIndexFormat() throws Exception {

    IObject options = new DSObject("{ \"ordered\": 123 }");
    IndexCreators.writeIndexes(body, collection, options);
}