### Question:
EtdContractCode extends TypedString<EtdContractCode> { @FromString public static EtdContractCode of(String name) { return new EtdContractCode(name); } private  EtdContractCode(String name); @FromString static EtdContractCode of(String name);  }### Answer:
@Test public void test_of() { EtdContractCode test = EtdContractCode.of("test"); assertThat(test.toString()).isEqualTo("test"); }
@Test public void test_equalsHashCode() { EtdContractCode a = EtdContractCode.of("test"); EtdContractCode a2 = EtdContractCode.of("test"); EtdContractCode b = EtdContractCode.of("test2"); assertThat(a.equals(a)).isTrue(); assertThat(a.equals(a2)).isTrue(); assertThat(a.equals(b)).isFalse(); assertThat(a.equals(null)).isFalse(); assertThat(a.equals(ANOTHER_TYPE)).isFalse(); }