DefaultIndexHandler implements IndexHandler<K, V> { public void clear() { indexes.clear(); } DefaultIndexHandler(); void addIndex(final String attributeName, final IndexType type); void add(final K key, final V value); void remove(final K key, final V value); void clear(); @SuppressWarnings("unchecked") List<K> execute(final Query query);  }
@Test public void clear() { doNothing().when(indexes).clear(); handler.clear(); verify(indexes).clear(); }