int ttl = 1000;
final ExpiryPolicy expiry = new TouchedExpiryPolicy(new Duration(MILLISECONDS, ttl));
final IgniteCache<Integer, Integer> c = grid(0).jcache(null);
final Integer key = primaryKeys(jcache(0), 1, 0).get(0);
c.put(key, 1);
<BUG>GridCacheEntryEx entry = ((IgniteKernal)grid(0)).internalCache().entryEx(key);
assert entry != null;</BUG>
assertEquals(0, entry.ttl());
assertEquals(0, entry.expireTime());
long startTime = System.currentTimeMillis();

int ttl = 1000;
final ExpiryPolicy expiry = new TouchedExpiryPolicy(new Duration(MILLISECONDS, ttl));
final IgniteCache<Integer, Integer> c = grid(0).jcache(null);
final Integer key = primaryKeys(jcache(0), 1, 0).get(0);
c.put(key, 1);
GridCacheAdapter<Object, Object> c0 = ((IgniteKernal)grid(0)).internalCache();
if (c0.isNear())
c0 = c0.context().near().dht();
GridCacheEntryEx entry = c0.entryEx(key);
assert entry != null;
assertEquals(0, entry.ttl());
assertEquals(0, entry.expireTime());
long startTime = System.currentTimeMillis();
