CompactRangeIndex extends AbstractIndex { @Override void addMapping(RegionEntry entry) throws IMQException { this.evaluator.evaluate(entry, true); this.internalIndexStats.incNumUpdates(); } CompactRangeIndex(InternalCache cache, String indexName, Region region, String fromClause,
      String indexedExpression, String projectionAttributes, String origFromClause,
      String origIndexExpr, String[] definitions, IndexStatistics stats); IndexStore getIndexStorage(); @Override IndexType getType(); @Override void initializeIndex(boolean loadEntries); @Override boolean clear(); @Override List queryEquijoinCondition(IndexProtocol indx, ExecutionContext context); @Override int getSizeEstimate(Object key, int operator, int matchLevel); @Override ObjectType getResultSetType(); List expandValue(ExecutionContext context, Object lowerBoundKey, Object upperBoundKey,
      int lowerBoundOperator, int upperBoundOperator, Object value); String dump(); static void setTestHook(TestHook hook); @Override boolean isEmpty(); @Override Map getValueToEntriesMap(); void addSavedMappings(RegionEntry entry);  }
@Test public void testAddMapping() throws Exception { when(region.getCache()).thenReturn(cache); when(cache.getCachePerfStats()).thenReturn(cacheperfstat); when(cache.getQueryService()).thenReturn(queryservice); index.addMapping(entry); verify(indstats).incNumUpdates(); }