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