IdentityZone { public static IdentityZone getUaa() { Calendar calendar = Calendar.getInstance(); calendar.clear(); calendar.set(Calendar.YEAR, 2000); IdentityZone uaa = new IdentityZone(); uaa.setCreated(calendar.getTime()); uaa.setLastModified(calendar.getTime()); uaa.setVersion(0); uaa.setId(OriginKeys.UAA); uaa.setName(OriginKeys.UAA); uaa.setDescription("The system zone for backwards compatibility"); uaa.setSubdomain(""); return uaa; }  static IdentityZone getUaa(); static String getUaaZoneId(); @JsonIgnore boolean isUaa(); Date getCreated(); void setCreated(Date created); Date getLastModified(); void setLastModified(Date lastModified); void setVersion(int version); int getVersion(); String getName(); void setName(String name); String getSubdomain(); void setSubdomain(String subdomain); String getId(); void setId(String id); String getDescription(); void setDescription(String description); boolean isActive(); void setActive(boolean active); IdentityZoneConfiguration getConfig(); void setConfig(IdentityZoneConfiguration config); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test void getUaa() { Calendar calendar = Calendar.getInstance(); calendar.set(2000, Calendar.JANUARY, 1, 0, 0, 0); calendar.set(Calendar.MILLISECOND, 0); Date expectedDate = calendar.getTime(); IdentityZone actual = IdentityZone.getUaa(); assertThat(actual.getId(), is("uaa")); assertThat(actual.getSubdomain(), is("")); assertThat(actual.getName(), is("uaa")); assertThat(actual.getVersion(), is(0)); assertThat(actual.getDescription(), is("The system zone for backwards compatibility")); assertThat(actual.isActive(), is(true)); assertThat(actual.getCreated(), is(expectedDate)); assertThat(actual.getLastModified(), is(expectedDate)); }