public void wrong_key_type()
{
ContributionDef def = newContributionDef("contributionPlaceholder1");
Log log = newLog();
Map<?, ContributionDef> keyToContribution = newMap();
MappedConfiguration delegate = newMappedConfiguration();
Runnable value = newRunnable();
log.warn(IOCMessages.contributionWrongKeyType(SERVICE_ID, def, String.class, Class.class));
replay();
MappedConfiguration wrapper = new ValidatingMappedConfigurationWrapper(SERVICE_ID, def,
log, Class.class, Runnable.class, keyToContribution, delegate);
wrapper.add("java.util.List", value);
verify();
}