@Test
public void getIndexDBObjectFullTextTest() throws MongoValidationException {

    IndexMetadataBuilder indexMetaBuilder = new IndexMetadataBuilder(DB_NAME, TABLE_NAME, INDEX_NAME,
                    IndexType.FULL_TEXT);
    indexMetaBuilder.addColumn(COLUMN_NAME, COLUMN_VARCHAR);
    IndexMetadata indexMetadata = indexMetaBuilder.build();
    DBObject object = IndexUtils.getIndexDBObject(indexMetadata);
    assertEquals("The value of the full-text index column should be 'text'", "text", object.get(COLUMN_NAME));
}