public List<DBObject> getIndexInfo() {
        return delegate.listIndexes(DBObject.class).into(new ArrayList<>());
    }
@Test
    void getIndexInfo() {
        final var collection = jacksonCollection("simple", Simple.class);
        collection.createIndex(new BasicDBObject("name", 1));
        collection.createIndex(new BasicDBObject("_id", 1).append("name", 1));

        assertThat(collection.getIndexInfo()).containsExactlyInAnyOrder(
                new BasicDBObject("key", new Document("_id", 1))
                        .append("name", "_id_")
                        .append("v", 2),
                new BasicDBObject("key", new Document("name", 1))
                        .append("name", "name_1")
                        .append("v", 2),
                new BasicDBObject("key", new Document("_id", 1)
                        .append("name", 1))
                        .append("name", "_id_1_name_1")
                        .append("v", 2)
        );
    }