@SuppressWarnings("unchecked")
@Test
public void shouldProperlyInvalidateFromAnotherCacheWhenItemPut() throws Exception {

    Mache<String, TestEntity> cache2 = observableCacheFactory2.createCache(
            macheFactory.create(String.class, TestEntity.class, cacheLoader2));
    reset(spiedCache1);
    cache2.put(testValue2.pkey, testValue2);
    verify(spiedCache1).invalidate(testValue2.pkey);
}