@Test
public void testLoad() throws Exception {

    Table table = new Table();
    table.setName(TEST_TABLE);
    table.setTtl(30);
    elasticsearchServer.getClient().prepareIndex()
            .setIndex(TABLE_META_INDEX)
            .setType(TABLE_META_TYPE)
            .setConsistencyLevel(WriteConsistencyLevel.ALL)
            .setSource(mapper.writeValueAsString(table))
            .setId(table.getName())
            .setRefresh(true)
            .execute()
            .actionGet();
    Table responseTable = tableMapStore.load(table.getName());
    compareTables(table, responseTable);
}