c.setEvictionConfig(new EvictionConfig());
EvictionRegionConfig erc = new EvictionRegionConfig(fqn, config);
c.getEvictionConfig().addEvictionRegionConfig(erc);
CacheSPI mockCache = EasyMock.createNiceMock(CacheSPI.class);
EasyMock.replay(mockCache);
((RegionManagerImpl) regionManager).injectDependencies(mockCache, c, null, null, null, new RegionRegistry());
Region r = regionManager.getRegion(fqn, Region.Type.EVICTION, true);
r.setEvictionRegionConfig(erc);
((RegionManagerImpl) regionManager).start();
return (EvictionAlgorithm) TestingUtil.extractField(r, "evictionAlgorithm");