QueryUtil { @NotNull public static String escapeNodeName(@NotNull String string) { return QueryUtils.escapeNodeName(string); } private  QueryUtil(); @NotNull static String getSearchRoot(AuthorizableType type, ConfigurationParameters config); @NotNull static String getNodeTypeName(@NotNull AuthorizableType type); @NotNull static String escapeNodeName(@NotNull String string); @NotNull static String format(@NotNull Value value); @NotNull static String escapeForQuery(@NotNull String oakName, @NotNull NamePathMapper namePathMapper); @NotNull static String escapeForQuery(@NotNull String value); @NotNull static RelationOp getCollation(@NotNull QueryBuilder.Direction direction); @Nullable static String getID(@Nullable Authorizable authorizable);  }
@Test public void testEscapeNodeName() { List<String> names = ImmutableList.of("name", JcrConstants.JCR_CREATED, "%name", "a%name", "name%"); for (String name : names) { assertEquals(QueryUtils.escapeNodeName(name), QueryUtil.escapeNodeName(name)); } }