final String comment = "*good";
searchCriteria.put(propComment, comment);
searchCriteria.put(propFile, "spring");
searchCriteria.put(WildcardLookupableImpl.WILDCARD_PROPERTYNAMES, wildCardPropertyNames.toString());
Map<String, String> result = lookupable.processSearchCriteria(new LookupForm(), searchCriteria);
final String message = "search value differs";
assertEquals(message, name, result.get(propName));
assertEquals(message, location, result.get(propLocation));
assertEquals(message, comment, result.get(propComment));
assertEquals(message, "*spring*", result.get(propFile));
assertNull("the wildcards entry should have been deleted", result.get(WildcardLookupableImpl.WILDCARD_PROPERTYNAMES));
searchCriteria.put(WildcardLookupableImpl.WILDCARD_PROPERTYNAMES, propFile);
result = lookupable.processSearchCriteria(new LookupForm(), searchCriteria);
assertEquals(message, "*spring*", result.get(propFile));
}