// Do not assume that infra and provider are the same;
// that's an implementation choice.
ObjectProvider provider = alias.getObjectProvider();
Runnable actual1 = provider.provide(property, Runnable.class, locator);
Runnable actual2 = provider.provide(property, Runnable.class, locator);
assertSame(actual1, r);
assertSame(actual2, r);