ItemNamePattern implements RestrictionPattern { @Override public String toString() { return names.toString(); } ItemNamePattern(Iterable<String> names); @Override boolean matches(@NotNull Tree tree, @Nullable PropertyState property); @Override boolean matches(@NotNull String path); @Override boolean matches(); @Override int hashCode(); @Override String toString(); @Override boolean equals(Object obj);  }
@Test public void testToString() { assertEquals(names.toString(), pattern.toString()); }