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