VersionSchema { Version version(String version) { return new Version(this, version); } private  VersionSchema(SuffixMap suffixMap);   }
@Test public void testComparisons() { VersionSchema schema = createTestSchema(); assertTrue(schema.version("1.0-alpha1").compareTo(schema.version("1.0-alpha1")) == 0); assertTrue(schema.version("1.0-alpha1").compareTo(schema.version("1.0-alpha2")) < 0); assertTrue(schema.version("1.0-alpha2").compareTo(schema.version("1.0-alpha1")) > 0); assertTrue(schema.version("1.0-beta1").compareTo(schema.version("1.0-alpha2")) > 0); }