### Question:
EncryptionUtils { public static void init (PublicKey pubKey) { EncryptionUtils.pubKey = pubKey; } protected  EncryptionUtils(); static void init(PublicKey pubKey); static boolean isInitialized(); static byte[] encrypt(PublicKey publicKey, String message); static byte[] encrypt(String message); static byte[] decryptToBytes(PrivateKey privateKey, byte [] encrypted); static String decrypt(PrivateKey privateKey, byte [] encrypted); static PublicKey getPubKeyFromArray(byte[] bytes); static byte[] convertPublicKeyToByteArray(PublicKey publicKey); static KeyPair generateKeyPair();  }### Answer:
@Test public void testInit () throws NoSuchAlgorithmException { KeyPair keyPair = buildKeyPair(); PublicKey pubKey = keyPair.getPublic(); PrivateKey privateKey = keyPair.getPrivate(); EncryptionUtils.pubKey = null; EncryptionUtils.init(pubKey); assertNotNull(EncryptionUtils.pubKey); }