private void assertIsNewer(String basever, String testver) {
   Version vbase = new Version(basever);
   Version vtest = new Version(testver);
   assertTrue(
       "Version [" + testver + "] should be newer than [" + basever + "]",
       vtest.isNewerThan(vbase));
 }
  private void assertParse(String verStr, int legacyMajor, int major, int revision, int update) {
    Version ver = new Version(verStr);
    assertThat("Version [" + verStr + "].legacyMajor", ver.getLegacyMajor(), is(legacyMajor));
    assertThat("Version [" + verStr + "].major", ver.getMajor(), is(major));
    assertThat("Version [" + verStr + "].revision", ver.getRevision(), is(revision));
    assertThat("Version [" + verStr + "].update", ver.getUpdate(), is(update));

    assertThat("Version [" + verStr + "].toString", ver.toString(), is(verStr));
  }
 private void assertToShortString(String verStr, String expectedShortString) {
   Version ver = new Version(verStr);
   assertThat(
       "Version [" + verStr + "].toShortString", ver.toShortString(), is(expectedShortString));
 }