public void testGet() throws Exception {
  IgniteCache<Long,Long> cache=populate();
  for (long i=from; i < to; i++) {
    Long val=cache.get(i);
    assertNotNull(val);
    assertEquals(i,val.longValue());
  }
  assertEquals(0,swappedCnt.get());
  assertEquals(0,offheapedCnt.get());
  assertEquals(to - from,unswapedCnt.get() + onheapedCnt.get());
  checkEntries(cache);
  assertEquals(to - from,unswapedCnt.get() + onheapedCnt.get());
}

public void testGet ( ) throws Exception { IgniteCache < Long , Long > cache = populate ( ) ; for ( long i = from ; i < to ; i ++ ) { Long val = cache . get ( i ) ; assertNotNull ( val ) ; assertEquals ( i , val . longValue ( ) ) ; } assertEquals ( 0 , swappedCnt . get ( ) ) ; assertEquals ( 0 , offheapedCnt . get ( ) ) ; assertEquals ( to - from , unswapedCnt . get ( ) + onheapedCnt . get ( ) ) ; checkEntries ( cache ) ; assertEquals ( to - from , unswapedCnt . get ( ) + onheapedCnt . get ( ) ) ; }
tests behavior on offheaped entries .
