{AliasContribution.create(String.class, "FRED"),
AliasContribution.create(String.class, "bar", "FRED-NON-CONFLICT"),
AliasContribution.create(Runnable.class, r)};
Collection<AliasContribution> configuration = Arrays.asList(contributions);
AliasManager manager = new AliasManagerImpl(logger, configuration);
Map<Class, Object> map = manager.getAliasesForMode("BAR");
assertEquals(map.size(), 2);
assertEquals(map.get(String.class), "FRED-NON-CONFLICT");
assertSame(map.get(Runnable.class), r);