@Test
public void should_compare_versions() throws Exception {

    Version version = new Version("1.2.2");
    assertThat(version.isGreaterThan("1.1.0")).isTrue();
    assertThat(version.isGreaterThan("1.2.2-SNAPSHOT")).isTrue();
    assertThat(version.isGreaterThan("1.2.1")).isTrue();
    assertThat(version.isGreaterThan("1.2.3")).isFalse();
    assertThat(version.isGreaterThan("1.2.3-SNAPSHOT")).isFalse();
    assertThat(version.isGreaterThan("2.0.0")).isFalse();
}