void () { final JsonSchemaPatternComparator comparator = new JsonSchemaPatternComparator(getProject()); Assert.assertEquals(ThreeState.YES, comparator.isSimilar(f("test"), f("test"))); Assert.assertEquals(ThreeState.YES, comparator.isSimilar(f("./test"), f("test"))); Assert.assertEquals(ThreeState.NO, comparator.isSimilar(f("../test"), f("test"))); Assert.assertEquals(ThreeState.NO, comparator.isSimilar(f("other"), f("test"))); Assert.assertEquals(ThreeState.YES, comparator.isSimilar(f("one/../one/two"), f("one/two"))); }