VersionSchema { int compareSuffixes(String suffix1, String suffix2) { Suffix suffixObject1 = suffixMap.getSuffix(suffix1); Suffix suffixObject2 = suffixMap.getSuffix(suffix2); int index1 = suffixObject1.orderIndex(); int index2 = suffixObject2.orderIndex(); int result = index1 < index2 ? -1 : (index1 == index2 ? 0 : 1); if (result != 0) return result; else { String canonical1 = suffixObject1.canonicalString(); String canonical2 = suffixObject2.canonicalString(); return canonical1.compareTo(canonical2); } } private  VersionSchema(SuffixMap suffixMap);   }
@Test public void testCompareSuffixes() { VersionSchema schema = createTestSchema(); assertTrue(schema.compareSuffixes("beta", "Beta") == 0); }