public void setUp() throws InterruptedException, ExecutionException {
GlobalConfiguration gc = new GlobalConfigurationBuilder().build();
Configuration c = new ConfigurationBuilder().build();
Set<String> cachesSet = new HashSet<String>();
EmbeddedCacheManager cm = mock(EmbeddedCacheManager.class);
AdvancedCache cache = mock(AdvancedCache.class);
gcr = new GlobalComponentRegistry(gc, cm, cachesSet);
cr1 = new ComponentRegistry("cache", c, cache, gcr, ComponentRegistryTest.class.getClassLoader());
cr2 = new ComponentRegistry("cache", c, cache, gcr, ComponentRegistryTest.class.getClassLoader());
}