NumericVersion implements Version, Comparable<NumericVersion> { @Override public String asString() { return major + "." + minor + "." + micro; } NumericVersion(int major, int minor, int micro); @Override int compareTo(NumericVersion other); @Override String toString(); @Override boolean isGreaterThan(Version version); @Override boolean isEqualTo(Version version); @Override String asString();  }
@Test public void hasStringRepresentationWithDots() throws Exception { assertThat(currentVersion.asString(), is("4.2.1")); }