@Override
    public EncryptionKey generateKey() {
        NormalKey ret = createRandom(this.algorithm);
        ret.setEncryptedKey(wrapKey(this.algorithm, ret.getPlainKey()));
        ret.setParent(this);
        return ret;
    }
@Test
    public void testGenerateKey() {
        NormalKey newKey = (NormalKey) normalKey.generateKey();
        assertNotNull(newKey);
        assertNotNull(newKey.getEncryptedKey());
        assertEquals(normalKey, newKey.getParent());
    }