### Question:
CPF { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final CPF other = (CPF) obj; if (numero == null) { if (other.numero != null) { return false; } } else if (!numero.equals(other.numero)) { return false; } return true; } CPF(String numero); String getNumero(); String getNumeroFormatado(); boolean isValido(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }### Answer:
@Test public void shouldHaveDomainDrivenEquals() { CPF a = new CPF("333.333.333-33"); CPF b = new CPF("333.333.333-33"); assertTrue(a.equals(b)); assertTrue(b.equals(a)); }