public static Key generateSingleKey() throws NoSuchAlgorithmException {
    Key key = KeyGenerator.getInstance( SINGLE_KEY_ALGORITHM ).generateKey();
    return key;
  }
@Test
  public void testRandomSessionKeyGeneration() throws Exception {
    Key key = CertificateGenEncryptUtil.generateSingleKey();
    Key key1 = CertificateGenEncryptUtil.generateSingleKey();
    assertFalse( key.equals( key1 ) );
    assertFalse( Arrays.equals( key.getEncoded(), key1.getEncoded() ) );
  }