@Test
public void testEntryIsNoMoreAvailableAfterExpiry()
throws InterruptedException, IOException
{
AllocationPolicy allocationPolicy = new RoundRobinAllocationPolicy();
MemoryManagerService<MyBean> memoryManager = new MemoryManagerServiceImpl<MyBean>( allocationPolicy, true );
CacheService<Integer, MyBean> cache =
new DirectMemory<Integer, MyBean>().setMemoryManager( memoryManager ).setNumberOfBuffers( 1 ).setSize( Ram.Mb( 1 ) ).newCacheService();
/*
* let the scan run every 10s