### Question:
LambdaParser { private static boolean inString(String s, int pos) { int quotes = 0; for (int n = s.length(); pos < n; pos++) { char c = s.charAt(pos); char next = pos + 1 < n ? s.charAt(pos + 1) : 0; if (c == '\\' && next == '"') { pos += 1; } else if (c == '"') { quotes++; } } return quotes % 2 == 1; }  static String parse(String s);  }### Answer:
@Test public void inString() { String anon = LambdaParser.parse("\"(a ->, x\""); assertThat(anon).isEqualTo("\"(a ->, x\""); }