### Question:
EntityVersion implements Serializable { public boolean equalsVersion(EntityVersion o) { return o == null ? false : Objects.equals(entity, o.getEntity()) && Objects.equals(version, o.getVersion()); } 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 testEqualsVersion() { assertTrue(entityVersion.equalsVersion(new EntityVersion(entity, version))); }
@Test public void testEqualsVersionNullObject() { assertFalse(entityVersion.equalsVersion(null)); }