public void testEscapeDot() throws Exception {
    String[][] inout =
        new String[][] {
          {"a", "a"},
          {"", ""},
          {" ", " "},
          {".", "\\."},
          {". .", "\\. \\."},
          {"a.", "a\\."},
          {".a", "\\.a"},
          {"a.b", "a\\.b"},
          {"a..b", "a\\.\\.b"},
          {"a\\.b", "a\\.b"},
          {"a\\..b", "a\\.\\.b"},
          {"a.\\..b", "a\\.\\.\\.b"},
          {"a.b.c", "a\\.b\\.c"}
        };

    for (int i = 0; i < inout.length; i++) {
      String input = inout[i][0];
      String expected = inout[i][1];
      assertEquals("for input " + input, expected, ASTFilterSpecHelper.escapeDot(input));
    }
  }