@SneakyThrows(GeneralSecurityException.class)
    @Override
    public String encrypt(final Object plainValue) {
        if (null == plainValue) {
            return null;
        }
        byte[] result = getCipher(Cipher.ENCRYPT_MODE).doFinal(String.valueOf(plainValue).getBytes(StandardCharsets.UTF_8));
        return Base64.getEncoder().encodeToString(result);
    }
@Test
    void assertEncrypt() {
        Object actual = cryptographicAlgorithm.encrypt("test");
        assertThat(actual, is("dSpPiyENQGDUXMKFMJPGWA=="));
    }