### Question:
Datable implements Comparable<Datable>, Serializable, Range { @Override public boolean equals(Object obj) { if (!(obj instanceof Datable)) { return false; } Datable other = (Datable) obj; return Objects.equal(other.edtf, edtf); } Datable(String edtf); String getEdtf(); boolean isFloruit(); Certainty getCertainty(); Date getFromDate(); Date getToDate(); @Override @JsonValue String toString(); int getFromYear(); int getToYear(); @Override int compareTo(Datable other); @Override boolean equals(Object obj); @Override int hashCode(); @Override boolean isValid(); @Override Object getUpperLimit(); @Override Object getLowerLimit();  }### Answer:
@Test public void testEqualsEqual() { Datable first = new Datable("20131011"); Datable second = new Datable("20131011"); assertTrue(first.equals(second)); }
@Test public void testEqualsNotEqual() { Datable first = new Datable("20131011"); Datable second = new Datable("20131012"); assertFalse(first.equals(second)); }