void () { String root = DIR_ROOT + separatorChar + "sub", collidingRoot = root + "-dir", otherRoot = root + "XXX"; String probe = root + separatorChar + "file"; CanonicalPathMap map = createCanonicalPathMap(asList(root, collidingRoot, otherRoot), emptyList()); Collection<String> watched = map.mapToOriginalWatchRoots(probe, true); assertThat(watched).containsExactly(probe); }