Decryptor { public static boolean isEncrypted(String value) { return value.startsWith(ENCRYPTED_PROPERTY_PREFIX) && value.endsWith(ENCRYPTED_PROPERTY_SUFFIX); } Decryptor(final StringEncryptor decryptor); static String getAlias(final Dictionary<String, Object> config); Dictionary<String, Object> decrypt(final Dictionary<String, Object> config); static boolean isEncrypted(String value); static boolean isEncrypted(Dictionary<String, Object> loadedConfig);  }
@Test public void testIsEncrypted() { assertTrue(Decryptor.isEncrypted("ENC(123456abce)")); assertFalse(Decryptor.isEncrypted("123456abce")); }