public String decrypt(String encryptedText) {
    Matcher matcher = ENCRYPTED_PATTERN.matcher(encryptedText);
    if (matcher.matches()) {
      Cipher cipher = ciphers.get(matcher.group(1).toLowerCase(Locale.ENGLISH));
      if (cipher != null) {
        return cipher.decrypt(matcher.group(2));
      }
    }
    return encryptedText;
  }
@Test
  public void should_notDecryptText_whenBadBraceSyntax(){
    Encryption encryption = new Encryption(null);
    assertThat(encryption.decrypt("}xxx{Zm9v")).isEqualTo("}xxx{Zm9v");
    assertThat(encryption.decrypt("}dcd}59LK")).isEqualTo("}dcd}59LK");
    assertThat(encryption.decrypt("}rrrRg6")).isEqualTo("}rrrRg6");
    assertThat(encryption.decrypt("{closedjdk")).isEqualTo("{closedjdk");

  }