// sign the data
SignatureCodec signature = signatureFactory.sign(protectionKey.getPrivate(), testData.buffer());
// verify the data with the signature
boolean isVerified = signatureFactory.verify(protectionKey.getPublic(), testData.buffer(), signature);
// check if verifying worked
Assert.assertTrue(isVerified);
}