### Question:
GitVersion implements Comparable<GitVersion> { @Override public String toString() { List<String> parts = new ArrayList<String>(); for (Integer each: this.parts) parts.add(each.toString()); return StringUtils.join(parts, "."); } GitVersion(String versionStr); List<Integer> getParts(); boolean isMsysgit(); @Override int compareTo(GitVersion version); boolean isNotOlderThan(GitVersion version); boolean isNewerThan(GitVersion version); boolean isNotNewerThan(GitVersion version); boolean isOlderThan(GitVersion version); @Override String toString();  }### Answer:
@Test public void shouldConvertToStringCorrectly() { assertEquals(new GitVersion("1.8.3.msysgit.0").toString(), "1.8.3.0"); assertEquals(new GitVersion("1.8.3.05").toString(), "1.8.3.5"); }