/** Test that our keyword update callback works properly. */
public void testKeywordUpdates() {
final Set<String> lastKeywords = Sets.newHashSet();
index.setKeywordCallback(new KeywordCallback() {
@Override
public void newKeywordsAdded(Set<String> keywords) {
lastKeywords.clear();
lastKeywords.addAll(keywords);
}