Assert.assertEquals("NormalValue;", lines.get(0));
// Check first encrypted value
Assert.assertTrue(lines.get(1).startsWith("\"ENC("));
Assert.assertTrue(lines.get(1).endsWith(")\";another value"));
String encryptedVal1 = new RegexUtil("\"ENC\\((.*)\\)").getMatches(lines.get(1))[0].getGroups()[0];
Assert.assertEquals("secret(;)", encryptor.decrypt(encryptedVal1));
// Check second encrypted value
Assert.assertTrue(lines.get(2).startsWith("\"ENC("));
Assert.assertTrue(lines.get(2).endsWith(")\";"));
String encryptedVal2 = new RegexUtil("\"ENC\\((.*)\\)").getMatches(lines.get(2))[0].getGroups()[0];
Assert.assertEquals("\"secret;\"", encryptor.decrypt(encryptedVal2));
}