### Question:
Version implements Comparable<Version> { @Override public String toString() { return "" + major + "." + minor + "." + patch; } Version(final int major, final int minor, final int patch); static Version fromString(final String version); @Override String toString(); int getMajor(); int getMinor(); int getPatch(); @Override boolean equals(final Object obj); @Override int hashCode(); @Override int compareTo(final Version version); static Range<Version> createRangeOf(final Version from, final Version to); static final Version NULL; static final String NULL_VERSION_STRING; }### Answer:
@Test public void testToString() throws Exception { assertEquals("0.0.0", Version.fromString("0.0.0").toString()); assertEquals("1.2.3", Version.fromString("1.2.3").toString()); assertEquals("1.2.3", Version.fromString("01.2.003").toString()); assertEquals("12.34.56", Version.fromString("12.34.56").toString()); }