### Question:
CcpId implements Named, Serializable { @FromString public static CcpId of(String name) { return new CcpId(name); } private  CcpId(String name); @FromString static CcpId of(String name); @Override String getName(); @Override boolean equals(Object obj); @Override int hashCode(); @ToString @Override String toString();  }### Answer:
@Test public void test_equalsHashCode() { CcpId a = CcpId.of("LCH"); CcpId a2 = CcpIds.LCH; CcpId b = CcpId.of("CME"); assertThat(a) .isEqualTo(a) .isEqualTo(a2) .isNotEqualTo(b) .isNotEqualTo("") .isNotEqualTo(null) .hasSameHashCodeAs(a2); }
@Test public void test_serialization() { CcpId test = CcpId.of("LCH"); assertSerialization(test); }