nativeCacheManager);
final org.infinispan.Cache<Object, Object> infinispanCacheAddedLater = nativeCacheManager
.getCache(nameOfInfinispanCacheAddedLater);
final Cache springCacheAddedLater = objectUnderTest
.getCache(nameOfInfinispanCacheAddedLater);
assertEquals(
"getCache("
+ nameOfInfinispanCacheAddedLater
+ ") should have returned the Spring cache having the Infinispan cache added after creating "
+ "SpringEmbeddedCacheManager as its underlying native cache. However, the underlying native cache is different.",
infinispanCacheAddedLater, springCacheAddedLater.getNativeCache());
nativeCacheManager.stop();
}