Assert.assertTrue(futurePut1.isSuccess());
Data retData = p1.get(lKey).domainKey(dKey).contentKey(cKey).start().awaitUninterruptibly().data();
Assert.assertEquals(testData, (String) retData.object());
Assert.assertTrue(retData.verify(keyPair1.getPublic(), factory));
retData = p2.get(lKey).domainKey(dKey).contentKey(cKey).start().awaitUninterruptibly().data();
Assert.assertEquals(testData, (String) retData.object());
Assert.assertTrue(retData.verify(keyPair1.getPublic(), factory));
// change the key pair to the new one using an empty data object
data = new Data(testData).protectEntryNow(keyPair2, factory).duplicateMeta();
// use the old protection key to sign the message
FuturePut futurePut2 = p1.put(lKey).domainKey(dKey).sign().putMeta().data(cKey, data)