void () { final JsonSchemaPatternComparator comparator = new JsonSchemaPatternComparator(getProject()); Assert.assertEquals(ThreeState.YES, comparator.isSimilar(d("test"), d("test"))); Assert.assertEquals(ThreeState.YES, comparator.isSimilar(d("./test"), d("test"))); Assert.assertEquals(ThreeState.NO, comparator.isSimilar(d("../test"), d("test"))); Assert.assertEquals(ThreeState.YES, comparator.isSimilar(d(".."), d("test"))); Assert.assertEquals(ThreeState.NO, comparator.isSimilar(d("another"), d("test"))); Assert.assertEquals(ThreeState.YES, comparator.isSimilar(d("test/child"), d("test"))); }