### Question:
DictionaryEntryLineParser { public static String unescape(String text) { StringBuilder builder = new StringBuilder(); boolean foundQuote = false; for (int i = 0; i < text.length(); i++) { char c = text.charAt(i); if (i == 0 && c == QUOTE || i == text.length() - 1 && c == QUOTE) { continue; } if (c == QUOTE) { if (foundQuote) { builder.append(QUOTE); foundQuote = false; } else { foundQuote = true; } } else { foundQuote = false; builder.append(c); } } return builder.toString(); }  static String[] parseLine(String line); static String unescape(String text); static String escape(String text);  }### Answer:
@Test public void testUnescape() { assertEquals("A", DictionaryEntryLineParser.unescape("\"A\"")); assertEquals("\"A\"", DictionaryEntryLineParser.unescape("\"\"\"A\"\"\"")); assertEquals("\"", DictionaryEntryLineParser.unescape("\"\"\"\"")); assertEquals("\"\"", DictionaryEntryLineParser.unescape("\"\"\"\"\"\"")); assertEquals("\"\"\"", DictionaryEntryLineParser.unescape("\"\"\"\"\"\"\"\"")); assertEquals("\"\"\"\"\"", DictionaryEntryLineParser.unescape("\"\"\"\"\"\"\"\"\"\"\"\"")); }