assertSame(first, second);
}
@Test
public void testGetOrCreateWithFactory() {
Factory factory = ConfigFactory.newInstance();
Factory spy = spy(factory);
MyConfig first = ConfigCache.getOrCreate(spy, MyConfig.class);
MyConfig second = ConfigCache.getOrCreate(spy, MyConfig.class);
MyConfig third = ConfigCache.getOrCreate(spy, MyConfig.class);
assertSame(first, second);
assertSame(second, third);