public void testUnescapeIndexOf() throws Exception {
    Object[][] inout =
        new Object[][] {
          {"a", -1},
          {"", -1},
          {" ", -1},
          {".", 0},
          {" . .", 1},
          {"a.", 1},
          {".a", 0},
          {"a.b", 1},
          {"a..b", 1},
          {"a\\.b", -1},
          {"a.\\..b", 1},
          {"a\\..b", 3},
          {"a.b.c", 1},
          {"abc.", 3}
        };

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