KeyPair protectionKeysOld = EncryptionUtil.generateRSAKeyPair();
KeyPair protectionKeysNew = EncryptionUtil.generateRSAKeyPair();
// generate a fake meta file
List<MetaChunk> metaChunks1 = new ArrayList<MetaChunk>();
metaChunks1.add(new MetaChunk(NetworkTestUtil.randomString(), NetworkTestUtil.randomString()
.getBytes(), 0));
metaChunks1.add(new MetaChunk(NetworkTestUtil.randomString(), NetworkTestUtil.randomString()
.getBytes(), 1));
List<MetaChunk> metaChunks2 = new ArrayList<MetaChunk>();
metaChunks2.add(new MetaChunk(NetworkTestUtil.randomString(), NetworkTestUtil.randomString()
.getBytes(), 2));
List<FileVersion> fileVersions = new ArrayList<FileVersion>();
fileVersions.add(new FileVersion(0, 123, System.currentTimeMillis(), metaChunks1));
fileVersions.add(new FileVersion(1, 123, System.currentTimeMillis(), metaChunks2));
MetaFileSmall metaFileSmall = new MetaFileSmall(metaFileEncryptionKeys.getPublic(), fileVersions,