DebianVersion implements Comparable<DebianVersion> { public String getDebianRevision() { return debianRevision; } DebianVersion(final String version); int getEpoch(); String getDebianRevision(); String getUpstreamVersion(); @Override String toString(); @Override int compareTo(final DebianVersion o); @Override boolean equals(final Object o); @Override int hashCode();  }
@Test public void testVerifyDebianVersionPartIsCorrect_IfAllPartsPresent() { assertThat(new DebianVersion(LOWER_EPOCH_UPSTREAM_DEBIAN).getDebianRevision(), is(equalTo("2ubuntu2.1"))); }