### Question:
ResourceVersion implements Comparable<ResourceVersion> { public String getPrefix() { return prefix; } 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_verifyPrefix() { ResourceVersion rv; rv = new ResourceVersion("v1"); assertThat(rv.getPrefix(), equalTo("v")); rv = new ResourceVersion("token20"); assertThat(rv.getPrefix(), equalTo("token")); rv = new ResourceVersion("r100"); assertThat(rv.getPrefix(), equalTo("r")); rv = new ResourceVersion("prefix3"); assertThat(rv.getPrefix(), equalTo("prefix")); }