### Question:
ResourceVersion implements Comparable<ResourceVersion> { public Integer getPrereleaseVersion() { return prereleaseVersion; } ResourceVersion(String value); boolean isWellFormed(); boolean isGA(); boolean isAlpha(); boolean isBeta(); String getPrefix(); Integer getVersion(); String getPrerelease(); Integer getPrereleaseVersion(); @Override int compareTo(ResourceVersion o); String toString(); boolean equals(Object o); int hashCode();  }### Answer:
@Test public void whenParsed_verifyPrereleaseVersion() { ResourceVersion rv; rv = new ResourceVersion("v1"); assertNull(rv.getPrereleaseVersion()); rv = new ResourceVersion("v100alpha42"); assertThat(rv.getPrereleaseVersion(), equalTo(42)); }