test hashCode() of Aa and BB,then test String length equivalence(def).