@Test
public void testParse() {

    assertEquals(new Version(1), Version.parse("1"));
    assertEquals(new Version(1, 2, 3), Version.parse("1.2.3"));
    assertEquals(new Version(1, "SNAPSHOT"), Version.parse("1-SNAPSHOT"));
    assertEquals(new Version(1, 2, 3, "SNAPSHOT"), Version.parse("1.2.3-SNAPSHOT"));
}