Memory { public static Frame allocate(int size) { Partition currPartition=partitions.get(size); if(currPartition==null) { currPartition=new Partition(size); Partition oldPartition=partitions.putIfAbsent(size,currPartition); if(oldPartition!=null) currPartition=oldPartition; } return currPartition.allocate(); }  static Frame allocate(int size);  }
@Test public void testAllocate() throws InterruptedException { }