Set getDuidByCanonicalPath() because used only in unit test.