### Question:
EntityVersion implements Serializable { public int hashCode() { return (entity == null ? 1 : entity.hashCode()) * (version == null ? 1 : version.hashCode()); } EntityVersion();  EntityVersion(String entity, String version); String getEntity(); void setEntity(String entity); String getVersion(); void setVersion(String v); boolean equals(Object o); boolean equalsVersion(EntityVersion o); int hashCode(); String toString();  }### Answer:
@Test public void testHashCode() { assertEquals(entityVersion.hashCode(), entity.hashCode() * version.hashCode()); }
@Test public void testHashCodeNull() { entityVersion = new EntityVersion(); assertEquals(entityVersion.hashCode(), 1); }