train_getAliasesForMode(manager, mode, configuration);
train_getAliasesForMode(overridesManager, mode, _emptyMap);
replay();
Alias alias = new AliasImpl(manager, mode, overridesManager);
// Do not assume that infra and provider are the same;
// that's an implementation choice.
ObjectProvider provider = alias.getObjectProvider();
// Run through a couple of times to ensure that values are cached.
for (int i = 0; i < 2; i++)
{
Runnable actual = provider.provide(Runnable.class, annotationProvider, locator);