DefaultVersion implements Version { @Override public Type getType() { initElements(); return this.type; } DefaultVersion(String rawVersion);  DefaultVersion(Version version); @Override Type getType(); @Override String getValue(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); boolean equals(DefaultVersion version); @Override int compareTo(Version version); int compareTo(String version); int compareTo(DefaultVersion version);  }
@Test void getType() { assertEquals(Version.Type.SNAPSHOT, new DefaultVersion("1.1-SNAPSHOT").getType()); assertEquals(Version.Type.BETA, new DefaultVersion("1.1-milestone-1").getType()); assertEquals(Version.Type.STABLE, new DefaultVersion("1.1").getType()); }
@Test void getTypeForBigInteger() { new DefaultVersion("1.2147483648").getType(); }