void () { int idx = interner.addPath("/foo/bar"); int idx2 = interner.addPath("/foo/foo"); int idx3 = interner.addPath("/foo"); assertEquals("/foo/bar", interner.retrievePath(idx).toString()); assertEquals("/foo/foo", interner.retrievePath(idx2).toString()); assertEquals("/foo", interner.retrievePath(idx3).toString()); }