Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
" Write test for follow code "
### Input:
" method: ### public String encrypt(String plainText) throws CryptoException {\n        try {\n            byte[] iv = ivProvider.getIV();\n            Cipher cipher = cipherProvider.getCipher();\n            cipher.init(Cipher.ENCRYPT_MODE, createSecretKeySpec(), new IvParameterSpec(iv));\n            byte[] encryptedBytes = cipher.doFinal(plainText.getBytes(StandardCharsets.UTF_8));\n            return String.format(\"AES:%s:%s\", ENCODER.encodeToString(iv), ENCODER.encodeToString(encryptedBytes));\n        } catch (InvalidKeyException | InvalidAl", "output": "public class AESEncrypterTest {\n\n    private AESEncrypter aesEncrypter;\n\n    @Test\n    public void shouldGenerateEncryptedText() throws CryptoException {\n        String encrypt = aesEncrypter.encrypt(\"p@ssw0rd\");\n        assertThat(encrypt).startsWith(\"AES\");\n        assertThat(encrypt.split(\":\")).hasSize(3);\n    }\n}\n"
### Response:
 Make sure to only use capital letters in your entire response.
user