public void testExpand() {
index = new CachedIndex(new EmptyIndex(), 1000, 5, true);
check("larsga", "Lars Marius Garshol");
check("grove", "Geir Ove Gronmo");
check("tine", "Tine Holst");
check("sylvias", "Sylvia Schwab");
check("pepper", "Steve Pepper");
check("hca", "Hans Christian Alsos");
check("niko", "Niko Schmuck");
check("pam", "Pamela Gennusa");
check("kal", "Kal Ahmed");
check("murray", "Murray Woodman");
lookfor("larsga", "Lars Marius Garshol");
lookfor("grove", "Geir Ove Gronmo");
lookfor("tine", "Tine Holst");
lookfor("sylvias", "Sylvia Schwab");
lookfor("pepper", "Steve Pepper");
lookfor("hca", "Hans Christian Alsos");
lookfor("niko", "Niko Schmuck");
lookfor("pam", "Pamela Gennusa");
lookfor("kal", "Kal Ahmed");
lookfor("murray", "Murray Woodman");
assertTrue("non-existent key found",
index.get("dummy") == null);
}