@Test
public void getIndexDBObjectDefaultTest() throws MongoValidationException {

    IndexMetadataBuilder indexMetaBuilder = new IndexMetadataBuilder(DB_NAME, TABLE_NAME, INDEX_NAME, INDEX_DEFAULT);
    indexMetaBuilder.addColumn(COLUMN_NAME, COLUMN_VARCHAR);
    indexMetaBuilder.addColumn(COLUMN_NAME2, COLUMN_VARCHAR);
    IndexMetadata indexMetadata = indexMetaBuilder.build();
    DBObject object = IndexUtils.getIndexDBObject(indexMetadata);
    assertEquals("The value of the default index column should be 1", 1, object.get(COLUMN_NAME));
    assertEquals("The value of the default index column should be 1", 1, object.get(COLUMN_NAME2));
}