@Test
public void itCanRelockTheKeySetWithADifferentPassphrase() throws Exception {
final KeySet newKeySet = unlockedKeySet.relock("test".toCharArray(), "yay".toCharArray(), new SecureRandom());
try {
newKeySet.unlock("test".toCharArray());
fail("should have thrown a CryptographicException but didn't");
} catch (CryptographicException e) {
assertThat(e.getMessage()).isEqualTo("incorrect passphrase");
}