### Question:
ResourceVersion implements Comparable<ResourceVersion> { public boolean isWellFormed() { return "v".equals(prefix) && version != null; } 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_verifyWellFormed() { ResourceVersion rv; rv = new ResourceVersion("v1"); assert (rv.isWellFormed()); rv = new ResourceVersion("v27"); assert (rv.isWellFormed()); rv = new ResourceVersion("v100alpha42"); assert (rv.isWellFormed()); rv = new ResourceVersion("token20"); assert (!rv.isWellFormed()); rv = new ResourceVersion("r100"); assert (!rv.isWellFormed()); rv = new ResourceVersion("prefix3"); assert (!rv.isWellFormed()); }