AES { protected AES() { } protected  AES(); static SecretKey generateKey(); static String encodeSecretKey(SecretKey key); static SecretKey decodeSecretKey(String encoded); static final String ALGORITHM; static final int DEFAULT_SIZE; }
@Test public void testAes() { SecretKey key = AES.generateKey(); String encoded = AES.encodeSecretKey(key); SecretKey key1 = AES.decodeSecretKey(encoded); String encoded1 = AES.encodeSecretKey(key1); assertEquals(encoded, encoded1); }