void () { UniqueNameBuilder<String> builder = new UniqueNameBuilder<>("", "/"); builder.addPath("A", "/Users/yole/idea/foo/buy/index.html"); builder.addPath("B", "/Users/yole/idea/bar/buy/index.html"); assertEquals("foo/\u2026/index.html", builder.getShortPath("A")); }