@Test
public void testInitTable() throws Exception {

    dao.initTable();
    int count = 0;
    for (Document doc : dao.getCollection().listIndexes()) {
        count++;
    }
    assertEquals(2, count);
}