void () { UniqueNameBuilder<String> builder = new UniqueNameBuilder<>("/Users/yole/idea", "/"); builder.addPath("A", "/Users/yole/idea/build/scripts/layouts.gant"); builder.addPath("B", "/Users/yole/idea/community/build/scripts/layouts.gant"); assertEquals("build/\u2026/layouts.gant", builder.getShortPath("A")); assertEquals("community/\u2026/layouts.gant", builder.getShortPath("B")); }