@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);
}