@Test
public void testSave() throws IOException
{

  testMeta.checkpointManager.setup(testMeta.managedStateContext);
  Map<Long, Map<Slice, Bucket.BucketedValue>> buckets5 = ManagedStateTestUtils.getTestData(0, 5, 0);
  testMeta.checkpointManager.save(buckets5, 10, false);
  testMeta.checkpointManager.teardown();
  KryoCloneUtils<IncrementalCheckpointManager> cloneUtils = KryoCloneUtils.createCloneUtils(testMeta.checkpointManager);
  testMeta.checkpointManager = cloneUtils.getClone();
  testMeta.checkpointManager.setup(testMeta.managedStateContext);
  @SuppressWarnings("unchecked")
  Map<Long, Map<Slice, Bucket.BucketedValue>> buckets5After = (Map<Long, Map<Slice, Bucket.BucketedValue>>)
      testMeta.checkpointManager.retrieve(10);
  Assert.assertEquals("saved", buckets5, buckets5After);
  testMeta.checkpointManager.teardown();
}