void () { UniqueNameBuilder<String> builder = new UniqueNameBuilder<>("/Users/yole/idea", "/"); builder.addPath("A", "source/components/views/something/tmpl/default.php"); builder.addPath("B", "source/components/views/something_else/tmpl/default.php"); assertEquals("something/\u2026/default.php", builder.getShortPath("A")); assertEquals("something_else/\u2026/default.php", builder.getShortPath("B")); }