function assertIndicesType(indexNames, expectedType) {
  indexNames.forEach(function(indexName) {
    var index = indexStore.get(indexName);
    assertTrue(index instanceof expectedType);
  });
}
Asserts that the indices corresponding to the given index names are of a
specific type.
@param {!Array<string>} indexNames
@param {!Function} expectedType