Version extends Resource { public String getName() { return name; } protected  Version(RestClient restclient, JSONObject json); void mergeWith(Version version); void copyTo(Project project); static Version get(RestClient restclient, String id); @Override String toString(); String getName(); boolean isArchived(); boolean isReleased(); String getReleaseDate(); String getDescription(); static FluentCreate create(RestClient restclient, String project);  }
@Test public void testGetName() throws Exception { Version version = new Version(null, getTestJSON()); assertEquals(version.getName(), "1.0"); }